zoukankan      html  css  js  c++  java
  • 0201 ---背景 tableview

    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];

        

        

    }

  • 相关阅读:
    HDU 1261 字串数(排列组合)
    Codeforces 488C Fight the Monster
    HDU 1237 简单计算器
    POJ 2240 Arbitrage
    POJ 3660 Cow Contest
    POJ 1052 MPI Maelstrom
    POJ 3259 Wormholes
    POJ 3268 Silver Cow Party
    Codesforces 485D Maximum Value
    POJ 2253 Frogger(最短路)
  • 原文地址:https://www.cnblogs.com/gzz2016/p/5174990.html
Copyright © 2011-2022 走看看