TexasPokerLeftAndRight.m 888 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // TexasPokerLeftAndRight.m
  3. // BuguLive
  4. //
  5. // Created by GuoMs on 16/12/12.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "TexasPokerLeftAndRight.h"
  9. @implementation TexasPokerLeftAndRight
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. self.pokWidth = kPokerW;
  14. self.pokHeight = kPokerH;
  15. self.pokerTwoLeftLeading.constant = kBullPokerW*2.0/3.0;
  16. self.backgroundColor = [kBlackColor colorWithAlphaComponent:0.3];
  17. self.texasLeftAndRightOne.layer.cornerRadius = 5.0;
  18. self.texasLeftAndRightOne.layer.masksToBounds = YES;
  19. self.texasLeftAndRightTwo.layer.cornerRadius = 5.0;
  20. self.texasLeftAndRightTwo.layer.masksToBounds = YES;
  21. self.layer.cornerRadius = 4;
  22. self.layer.masksToBounds = YES;
  23. }
  24. - (void)hidenTexasPoker:(BOOL)hiden
  25. {
  26. self.texasLeftAndRightOne.hidden = hiden;
  27. self.texasLeftAndRightTwo.hidden = hiden;
  28. }
  29. @end