tableView代理方法

1. 初始化一个table-view控制器来管理一个表格视图的一个给定的风格。 

- (id) initWithStyle:(UITableViewStyle)style

{

self = [super initWithStyle:style];

if (self) {

self.tableView.separatorColor = [UIColor clearColor];

self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;

 

self.title = @"Currency";

self.hidesBottomBarWhenPushed = YES;

 

}

returnself;

}

posted @ 2012-07-16 18:41  zander  阅读(1315)  评论(0编辑  收藏  举报