zoukankan      html  css  js  c++  java
  • 0218 图片的添加

        //银行卡支付

        UIView *line123=[[UIView alloc]initWithFrame:CGRectMake(0, 79, SCREEN_WIDTH, 2)];

        line123.backgroundColor=RGB(208, 209, 208);

        [zhifuPatternView addSubview:line123];

        

    //    UIImageView *yinlian=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(line123.frame)+10, 26, 16)];

    //    yinlian.image=[UIImage imageNamed:@"yinlian"];//gzz0202

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

        yinlian.x=8;

        yinlian.y=CGRectGetMaxY(line123.frame)+10;

        [zhifuPatternView addSubview:yinlian];

        

        CGFloat  LX32=CGRectGetMaxX(zhifubao.frame)+10;

        CGFloat  LY32=74;

        CGFloat  LW32=150;

        CGFloat  LH32=15;

        UILabel *yinlianLabel = [[UILabel alloc] initWithFrame:CGRectMake(LX32, LY32,LW32, LH32)];

        yinlianLabel.centerY=yinlian.centerY;

        [zhifuPatternView addSubview:yinlianLabel];

        yinlianLabel.text =@"银行卡支付";

        yinlianLabel.font=[UIFont systemFontOfSize:16];

        

        

        CGFloat yinhangkaX=SCREENW-15-30;

        

        YinlianPayimage = [[UIImageView alloc]initWithFrame:CGRectMake(yinhangkaX, 11, 20, 20)];

        YinlianPayimage.centerY=yinlianLabel.centerY;

        YinlianPayimage.image =[UIImage imageNamed:@"completezhifu"];

        [zhifuPatternView addSubview:YinlianPayimage];

        //银行卡按钮

        yinhagkaButton =[UIButton buttonWithType:UIButtonTypeCustom];

        yinhagkaButton.frame = CGRectMake(yinhangkaX-10, 1, 40, 40);

        yinhagkaButton.centerY=yinlianLabel.centerY;

    //    [yinhagkaButton setBackgroundImage:[UIImage imageNamed:@"completezhifu"] forState:0];

        [yinhagkaButton addTarget:self action:@selector(yinhangkaBtnClick) forControlEvents:UIControlEventTouchUpInside];

        [zhifuPatternView addSubview:yinhagkaButton];

        

        zhifuPatternView.frame=CGRectMake(zhifuPatternView.x, zhifuPatternView.y, zhifuPatternView.width, CGRectGetMaxY(yinhagkaButton.frame));

        

        

  • 相关阅读:
    js 剪切板应用clipboardData
    正则表达式的与或非
    自定义类型转换器
    struts2类库下载
    通过ajax提交form表单
    面试官:为什么Mysql中Innodb的索引结构采取B+树?
    代码生成器:IDEA 强大的 Live Templates
    深入理解JVM,7种垃圾收集器,看完我跪了
    你能说出多线程中sleep、yield、join的用法及sleep与wait区别?
    Java8中一个极其强悍的新特性,很多人没用过(非常实用)
  • 原文地址:https://www.cnblogs.com/gzz2016/p/5197909.html
Copyright © 2011-2022 走看看