开发者

cant manually enter subclass names in xcode new file, only a drop down list

is it just my version of xcode or am I missing something. I am following a tutorial and it is telling me to right click Classes and select new file which i can do. it then says select iOS\CocoaTouch\Objective c class which i can do. However the tutorial then says For the subclass field enter CCLayer and click n开发者_如何学JAVAext, but the window im seeing has a subclass dropdown list that only contains NSObject, UITableViewCell and UIView. Have I got a version where I cant type in the subclass manually or am I missing something?


In your .h file you can do this....

@interface SampleViewController : UIViewController

In the above statement instead of UIViewController you can use your own class


As far as my knowledge in XCode 4 you have that option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜