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.
我对 xcode 很陌生,对于我的一生,我无法弄清楚这一点。我正在向情节提要添加一个视图控制器,并且我正在尝试向该控制器添加一个选择器,我在我创建的头文件和主文件中有代码,但是如何将这些文件链接到情节提要中的视图控制器?
方法如下:
为您的代码创建自定义 UIViewController 子类,例如 MyViewController.h 和 MyViewController.m
在情节提要中拖出一个 ViewController
(我认为你已经完成了这两个步骤)
然后,您将希望在情节提要中的选择器和代码之间建立链接....