码迷,mamicode.com
首页 > 其他好文 > 详细

0201 ---背景 tableview

时间:2016-02-01 14:28:33      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:

UIImageView *imageBim1 = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"jianbian5"]];

    imageBim1.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);

    [self.view addSubview:imageBim1];

    

    [self makeTV];

}

-(void)makeTV

{

    

    TvDataArray =[[NSMutableArray alloc]initWithArray:@[@"",@"我的订单",@"服务记录",@"送花记录",@"爱心捐助",@"常用银行卡",@"设置"]];

//    _TV =[[UITableView alloc]initWithFrame:CGRectMake(0, 0,self.view.bounds.size.width, self.view.bounds.size.height) style:UITableViewStylePlain];0131

    _TV =[[UITableView alloc]initWithFrame:CGRectMake(0, 64,self.view.bounds.size.width, self.view.bounds.size.height-64-49) style:UITableViewStylePlain];

//注:如果有tabbar的话 在减去49  

    _TV.dataSource= self;

    _TV.delegate = self;

    _TV.backgroundColor=[UIColor clearColor];

//    _TVSatand.backgroundColor = [UIColor clearColor];//   这样才显示背景色

//    _TVSatand.tableFooterView =[[UIView alloc]init];

//    _TVSatand.separatorStyle = UITableViewCellSeparatorStyleNone;

    

    _TV.tableFooterView =[[UIView alloc]init];

    

    [self.view addSubview:_TV];

    

    

}

 

0201 ---背景 tableview

标签:

原文地址:http://www.cnblogs.com/gzz2016/p/5174990.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!