BaseXibView.m 606 B

1234567891011121314151617181920212223242526
  1. //
  2. // BaseXibView.m
  3. // UniversalApp
  4. //
  5. // Created by 志刚杨 on 2018/1/26.
  6. // Copyright © 2018年 voidcat. All rights reserved.
  7. //
  8. #import "BaseXibView.h"
  9. @implementation BaseXibView
  10. +(instancetype)getView
  11. {
  12. NSString *className = NSStringFromClass([self class]);
  13. UINib *nib = [UINib nibWithNibName:className bundle:nil];
  14. return [nib instantiateWithOwner:nil options:nil].firstObject;
  15. }
  16. /*
  17. // Only override drawRect: if you perform custom drawing.
  18. // An empty implementation adversely affects performance during animation.
  19. - (void)drawRect:(CGRect)rect {
  20. // Drawing code
  21. }
  22. */
  23. @end