21

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

aneuryzm
  • 63,052
  • 100
  • 273
  • 488

1 Answers1

42

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

UIViewController *imageWithCaptionController = ...
Jimtronic
  • 1,179
  • 1
  • 9
  • 22
Vladimir
  • 170,431
  • 36
  • 387
  • 313
  • 4
    This only explains how to fix the error. The OP asks what the error *means*. [This answer](http://stackoverflow.com/a/8460375/172218) gives a more complete explanation. – j b Mar 05 '12 at 19:36