如何在XCode 4.3中创建新的View Controller [英] How to create new View Controllers in XCode 4.3

查看:99
本文介绍了如何在XCode 4.3中创建新的View Controller的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我已经想到在XCode 4.3中,要创建一个新的ViewController,我必须做New> Objective-C Class,然后继承UIViewController。但是,为什么xib复选框显示为灰色?如何使用xib创建新的视图控制器?

So I have figured out that in XCode 4.3, to create a new ViewController, I have to do New > Objective-C Class, then subclass UIViewController. But, how come the xib checkbox is greyed out? How do I create a new view controller with an xib?

推荐答案

看起来您正在尝试将OS X Objective-C类添加到iOS项目

It looks like you're trying to add an OS X Objective-C class to an iOS project

产生这个..

而是像这样添加新文件..

Instead add the new file like this..

产生此信息。 。

这篇关于如何在XCode 4.3中创建新的View Controller的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆