Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add new viewController in xCode 6

I need to add a new viewController (new file h. and m.) using xCode 6 beta. After I go to File > New > File I do not get the option to add an "Object-C class" as I used to do in xCode 5. Doing that I normally got a new h. and m. file appearing in the Navigation area.

Any one can help pls?

PS - I am a beginner trying to learn basics of "storyboard" :)

thanks

like image 728
Marco Bigatton Avatar asked Jan 10 '23 04:01

Marco Bigatton


1 Answers

If you choose objective-c File in your screenshot , you will get a .m file and a .h file written in Objective-C If you choose Cocoa Touch File , you will have a option of Objective-C and Swift File which can be subclasses of other cocoa touch classes such as UIViewController or UITableViewCell. IF you choose Swift File , you will get a single empty Swift file. Since you are a beginner writing code with Objective-C , you'd better choose Objective-c File directly

like image 125
Wstunes Avatar answered May 07 '23 17:05

Wstunes