Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在头文件中声明了 IBOutlets,但是当我打开 XIB 文件并单击视图时(我的类是采用 TableViewDelegate 的 UIViewController 子类),我只看到引用的插座,没有看到 IBOutlet。请指教。
NamRatha,转到 Nib 文件中的 File's Owner 文件,现在转到检查器中的最后一个选项卡。在班级身份中,从您的班级列表中选择。您现在应该能够看到您的 IBOutlets。
您需要在控制器引用上设置您的类,而不是视图。