开发者

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

开发者 https://www.devze.com 2023-03-30 02:31 出处:网络
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\

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

精彩评论

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

关注公众号