摘要: 建个空的iOS工程- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.window.backgroundColor = [... 阅读全文
posted @ 2013-05-15 15:54 酱酱爱 阅读(361) 评论(0) 推荐(0)
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; //初始化 tabBarItem对应的ViewController UIViewController *viewCtrl1 = [[UIViewController alloc] init]; v... 阅读全文
posted @ 2013-05-15 14:59 酱酱爱 阅读(752) 评论(0) 推荐(0)
摘要: 新建一个简单视图iOS工程,在ViewController的viewDidLoad中代码如下- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. tabBarCtrl = [[UITabBarController alloc] init];//要加入的TabBarController tabBarCtrl.delegate = self; // firstViewCtl = [[UIV... 阅读全文
posted @ 2013-05-15 13:56 酱酱爱 阅读(807) 评论(0) 推荐(0)