1 #import "AppDelegate.h" 2 3 #import "FirstTableViewController.h" 4 5 @interface AppDelegate () 6 7 8 9 @end10 11 12 13 @implementation AppDelegate14 15 16 17 18 19 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions20 21 {22 23 self.window.rootViewController=[[UINavigationController alloc] initWithRootViewController:[[FirstTableViewController alloc] initWithStyle: UITableViewStyleGrouped]];24 25 26 27 return YES;28 29 }30 31 #import32 33 @interface FirstTableViewController : UITableViewController34 35 @property(strong,nonatomic) NSArray *MyArrTitle;36 @property(strong,nonatomic) NSArray *MyArrImages;37 38 39 40 @end41 42 #import "FirstTableViewController.h"43 44 @interface FirstTableViewController ()45 46 @end47 48 @implementation FirstTableViewController49 50 - (void)viewDidLoad51 {52 [super viewDidLoad];53 54 self.title=@"我";55 56 self.MyArrTitle=@[@"相册",@"收藏",@"钱包",@"卡包",@"表情",@"设置"];57 self.MyArrImages=@[@"MoreMyAlbum@2x",@"MoreMyFavorites@2x",@"MoreMyBankCard@2x",@"PayCarddetailVirtualIcon@2x",@"MoreExpressionShops@2x",@"MoreSetting@2x"];58 //单元格重用 指定唯一标识59 [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"mycell"];60 //锁定屏幕61 self.tableView.scrollEnabled=NO;62 }