BankCardView.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // BankCardView.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/8/24.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "BankCardView.h"
  9. @implementation BankCardView
  10. -(instancetype)initWithFrame:(CGRect)frame
  11. {
  12. self = [super initWithFrame:frame];
  13. if (self) {
  14. //frame.hei = 60;
  15. CGFloat x,y,w,h;
  16. x = 20;
  17. y = 10;
  18. w = h = 40;
  19. _signImg = [[UIImageView alloc] setxywh];
  20. [self addSubview:_signImg];
  21. x += w + 20;
  22. y = 5;
  23. w = kSize.width - x - 30;
  24. h = 25;
  25. _titleLabel = [[UILabel alloc] setxywh];
  26. [_titleLabel setText:@"" Font:FontTitle TextColor:kTitleColor Alignment:NSTextAlignmentLeft];
  27. [self addSubview:_titleLabel];
  28. y += h;
  29. _detailLabel = [[UILabel alloc] setxywh];
  30. [_detailLabel setText:@"" Font:Font17 TextColor:contentTextColor Alignment:NSTextAlignmentLeft];
  31. [self addSubview:_detailLabel];
  32. UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(kSize.width - 30, 20, 10, 20)];
  33. imgView.image = [UIImage imageNamed:@"more_right_arrow.png"];
  34. [self addSubview:imgView];
  35. }
  36. return self;
  37. }
  38. -(void)setDataDic:(NSDictionary *)dataDic
  39. {
  40. _dataDic = dataDic;
  41. //NSLog(@"dataDic---><>%@",dataDic);
  42. }
  43. @end