//在應用程序啓動完成的時候調用 app
- (void)applicationDidFinishLaunching:(UIApplication *)application spa
{ 圖片
// Create Table View Controller with a clear background it
TableListViewController *tlvc = [[TableListViewController alloc] init]; io
//在這裏須要clean掉tableView身上的背景色,默認爲白色,clean完是透明 table
tlvc.tableView.backgroundColor = [UIColor clearColor]; List
// Initialize Navigation Controller 程序
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:tlvc]; im
//導航欄上的背景 tab
nav.navigationBar.tintColor = COOKBOOK_PURPLE_COLOR;//自定義的顏色
// Load in the backsplash image into a view
UIImageView *iv = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Backsplash.png"]] autorelease];//構建一張圖片
// Create main window and add backsplash and navigation controller view
UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[window addSubview:iv];//將圖片添加到window上面
[window addSubview:nav.view];//再將透明的tableView添加到window上面
[window makeKeyAndVisible];
}