1 #import "AppDelegate.h" 2 3 #import "FirstTableViewController.h" 4 5 @interface AppDelegate () 6 7 8 9 @end 10 11 12 13 @implementation AppDelegate 14 15 16 17 18 19 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 20 21 { 22 23 self.window.rootViewController=[[UINavigationController alloc] initWithRootViewController:[[FirstTableViewController alloc] initWithStyle: UITableViewStyleGrouped]]; 24 25 26 27 return YES; 28 29 } 30 31 #import <UIKit/UIKit.h> 32 33 @interface FirstTableViewController : UITableViewController 34 35 @property(strong,nonatomic) NSArray *MyArrTitle; 36 @property(strong,nonatomic) NSArray *MyArrImages; 37 38 39 40 @end 41 42 #import "FirstTableViewController.h" 43 44 @interface FirstTableViewController () 45 46 @end 47 48 @implementation FirstTableViewController 49 50 - (void)viewDidLoad 51 { 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 }