Interface type cannot be statically allocated

Very common error:

<pre brush=”c”>
NSString myString = @”This won’t compile”;
</pre>

and just means you’ve missed the asterisk to indicate myString should be a pointer.

<pre brush=”c”>
NSString *myString = @”This will”;
</pre>

Leave a Reply

Your email address will not be published. Required fields are marked *