2011-05-06 8 views
21

"error: Semantic Issue: Interface type cannot be statically allocated" का अर्थ क्या है?त्रुटि: अर्थपूर्ण समस्या: इंटरफ़ेस प्रकार को आवंटित नहीं किया जा सकता है?

यह गलत लाइन है:

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

धन्यवाद पैट्रिक

उत्तर

42

आप शायद imageWithCaptionController से पहले भूल रहे हैं '*', अपनी लाइन

UIViewController *imageWithCaptionController = ... 
+4

यह केवल बताते हैं कि कैसे करने के लिए किया जाना चाहिए त्रुटि ठीक करें। ओपी पूछता है कि त्रुटि * मतलब * क्या है। [यह उत्तर] (http://stackoverflow.com/a/8460375/172218) एक और पूर्ण स्पष्टीकरण देता है। –

संबंधित मुद्दे