//在应用程序启动完成的时候调用
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
// Create Table View Controller with a clear background
TableListViewController *tlvc = [[TableListViewController alloc] init];
//在这里需要clean掉tableView身上的背景色,默认为白色,clean完是透明
tlvc.tableView.backgroundColor = [UIColor clearColor];
// Initialize Navigation Controller
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:tlvc];
//导航栏上的背景
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];
}