Question

error: Semantic Issue: Interface type cannot be statically allocated?

What does "error: Semantic Issue: Interface type cannot be statically allocated" means ?

This is the wrong line:

UIViewController imageWithCaptionController = [[UIViewController alloc] initWithNibName:@"ImageWIthCaption" bundle:nibBundleOrNil];

thanks Patrick

 21  11824  21
1 Jan 1970

Solution

 42

You're probably missing '*' before imageWithCaptionController, your line should be

UIViewController *imageWithCaptionController = ...
2011-05-06