12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // BankCardView.m
- // jiaPei
- //
- // Created by apple on 16/8/24.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "BankCardView.h"
- @implementation BankCardView
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self) {
-
- //frame.hei = 60;
-
- CGFloat x,y,w,h;
- x = 20;
- y = 10;
- w = h = 40;
- _signImg = [[UIImageView alloc] setxywh];
- [self addSubview:_signImg];
-
- x += w + 20;
- y = 5;
- w = kSize.width - x - 30;
- h = 25;
- _titleLabel = [[UILabel alloc] setxywh];
- [_titleLabel setText:@"" Font:FontTitle TextColor:kTitleColor Alignment:NSTextAlignmentLeft];
- [self addSubview:_titleLabel];
-
- y += h;
- _detailLabel = [[UILabel alloc] setxywh];
- [_detailLabel setText:@"" Font:Font17 TextColor:contentTextColor Alignment:NSTextAlignmentLeft];
- [self addSubview:_detailLabel];
-
-
- UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(kSize.width - 30, 20, 10, 20)];
- imgView.image = [UIImage imageNamed:@"more_right_arrow.png"];
- [self addSubview:imgView];
- }
- return self;
- }
- -(void)setDataDic:(NSDictionary *)dataDic
- {
- _dataDic = dataDic;
- //NSLog(@"dataDic---><>%@",dataDic);
-
-
- }
- @end
|