PlayingCardView.m 500 B

12345678910111213141516171819202122232425
  1. //
  2. // PlayingCardView.m
  3. // GoldenFlowerDemo
  4. //
  5. // Created by GuoMs on 16/11/22.
  6. // Copyright © 2016年 zcd. All rights reserved.
  7. //
  8. #import "PlayingCardView.h"
  9. @implementation PlayingCardView
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. CGFloat width = kPokerW/3.0;
  14. self.numberOfCardWidth.constant = width-4;
  15. self.smallSuitWidth.constant =width-3;
  16. self.bigSuitWidth.constant = width*2-5;
  17. self.layer.cornerRadius = 5.0;
  18. self.layer.masksToBounds = YES;
  19. }
  20. @end