SocietyHeaderView.m 661 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // TianTuanHeaderView.m
  3. // BuguLive
  4. //
  5. // Created by 杨仁伟 on 2017/8/8.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "SocietyHeaderView.h"
  9. @implementation SocietyHeaderView
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. self.societyBgBtn.layer.cornerRadius = 35;
  13. self.societyBgBtn.clipsToBounds = YES;
  14. if (isIPhoneX())
  15. {
  16. self.headTopH.constant = 45;
  17. self.headBottomH.constant = 17;
  18. }
  19. else
  20. {
  21. self.headTopH.constant = 36;
  22. self.headBottomH.constant = 26;
  23. }
  24. }
  25. - (IBAction)goBackClick:(id)sender
  26. {
  27. [[BGBaseAppDelegate sharedAppDelegate] popViewController];
  28. }
  29. @end