CustomPlaceView.m 778 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // CustomPlaceView.m
  3. // Haishenghai-master
  4. //
  5. // Created by GG on 2019/1/4.
  6. // Copyright © 2019年 Haishenghai intelligence network technology. All rights reserved.
  7. //
  8. #import "CustomPlaceView.h"
  9. @implementation CustomPlaceView
  10. -(instancetype)initWithFrame:(CGRect)frame{
  11. if (self = [super initWithFrame:frame]) {
  12. }
  13. return self;
  14. }
  15. -(void)layoutSubviews{
  16. [super layoutSubviews];
  17. //在这里设置frame
  18. }
  19. //这里接数据模型用
  20. //-(void)setModel:(PlaceViewModel *)model{
  21. // _model = model;
  22. // self.nameLabel.text = model.title;
  23. //}
  24. /*
  25. // Only override drawRect: if you perform custom drawing.
  26. // An empty implementation adversely affects performance during animation.
  27. - (void)drawRect:(CGRect)rect {
  28. // Drawing code
  29. }
  30. */
  31. @end