I would like to know how to create UITableViewController in Xcode 6 using the New>File... template "wizard".
I have tried to create one by selecting
"New File>iOS>Source>Objective C File>"
Then I click next , then give the file name and select File type catagory and finally select UITableViewController from the drop down list.
However when this is done I end up with a file with no UITableView delegate classes or anything in it?
Im sure back in old XCode versions UITableViewController could be selected and it would create a file with the delegates methods all set up for you?
If you'd like to use the "New File Wizard" then after you select >File>New>File...
Choose Cocoa Touch Class
After clicking "Next" name your new class, and make it a subclass of UITableViewController
.
Remember you can always go back to first principals with blank header and implementation files and type the appropriate code in to create a subclass of UITableViewController.
For example in your blank header file...
#import <UIKit/UIKit.h>
@interface New_TableViewController : UITableViewController
@end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.