简体   繁体   中英

no IBOutlets in Interface Builder in iOS

I have declared IBOutlets in the header file but when I open the 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.

您需要在控制器引用而不是视图上设置类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM