IOS項目開發布局二
上次講到IOS項目開發的基礎,這篇文章講項目框架模版(以側邊欄為例)
一、下圖展示了項目的文件布局:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; UIViewController *viewController = [[UIViewController alloc] init]; viewController.view.backgroundColor = [UIColor redColor]; self.window.rootViewController = viewController; [viewController release]; [self.window makeKeyAndVisible]; return YES; }在運行之前先做如下操作: