TableView背景图片

 
UIView *backgroundView = [[UIView alloc] initWithFrame: window.frame];

backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"TableViewBackground.png"]];

[window addSubview:backgroundView];

[backgroundView release];



yourTableViewController = [[ATableViewController alloc] initWithStyle:UITableViewStyleGrouped];

yourTableViewController.view.backgroundColor = [UIColor clearColor];

[window addSubview:yourTableViewController.view];



[window makeKeyAndVisible];



你可能感兴趣的:(tableview)