开发者

no IBOutlets in Interface Builder in iOS

I have declared IBOutlets in the header file but when I open the开发者_StackOverflow社区 XIB file and click on the View(my class is a UIViewController sublass adopting TableViewDelegate), I see only the referencing outlets and no IBOutlet. Please advise.


NamRatha, go to File's Owner file in your Nib file, now go to the last tab in the inspector. In the class Identity choose from the list your class. You should be able to see now your IBOutlets.


You need to set your class on the controller reference, not the view.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜