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.
我想在我的 Project 中添加一个 UIViewController 子类,但是当我点击“添加新文件”时我没有找到它
Xcode -> File -> New -> File... -> 然后选择 Cocoa Touch 下的 Objective-C Class 然后 -> Next -> 输入你的类名并UIViewController从下拉菜单中选择
UIViewController
选择 Cocoa Touch 下的 Objective-C 类,然后在“Subclass of”的文本字段中输入 UIViewController。