口袋优选

KXTitleAndScrollView.m 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // KXTitleAndScrollView.m
  3. // YouHuiProject
  4. //
  5. // Created by jcymac on 2018/9/6.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "KXTitleAndScrollView.h"
  9. @interface KXTitleAndScrollView()
  10. @end
  11. @implementation KXTitleAndScrollView
  12. -(instancetype)initWithFrame:(CGRect)frame{
  13. if (self=[super initWithFrame:frame]) {
  14. }
  15. return self;
  16. }
  17. //
  18. //UIView *recomView = [[UIView alloc] initWithFrame:CGRectMake(Fitsize(10), 0, SCREEN_WIDTH-Fitsize(20), Fitsize(208))];
  19. //topRecomView = recomView;
  20. //recomView.layer.cornerRadius = Fitsize(8);
  21. //recomView.backgroundColor = [UIColor whiteColor];
  22. //UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(0, 10, Fitsize(65), Fitsize(40))];
  23. //title.font = [UIFont systemFontOfSize:Fitsize(14)];//[UIColor homeRedColor]
  24. //title.centerX = SCREEN_WIDTH/2;
  25. //title.text = @"热门商品";
  26. //[title sizeToFit];
  27. //title.textColor =[UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0x53F3FD] toColor:[UIColor YHColorWithHex:0x726BFF] withWidth:title.width];
  28. //[recomView addSubview:title];
  29. //UIImageView *icon = [[UIImageView alloc] initWithFrame:CGRectMake(title.left-20, 0, Fitsize(13), Fitsize(15))];
  30. //icon.centerY = title.centerY;
  31. //icon.image = [UIImage imageNamed:@"hotRecom_left"];
  32. //[recomView addSubview:icon];
  33. //UIImageView *icon2 = [[UIImageView alloc] initWithFrame:CGRectMake(title.right+5, 0, Fitsize(13), Fitsize(15))];
  34. //icon2.centerY = title.centerY;
  35. //icon2.image = [UIImage imageNamed:@"hotRecom_right"];
  36. //[recomView addSubview:icon2];
  37. //
  38. //KBTodayModelView *modelView = [[KBTodayModelView alloc] initWithFrame:CGRectMake(Fitsize(0), Fitsize(40), SCREEN_WIDTH-Fitsize(20), Fitsize(168)) titleNumOfLine:1];
  39. //modelView.isOhterPage = YES;
  40. //modelView.name = self.model.name;
  41. //modelView.Id = self.model.Id;
  42. //self.recommonView = modelView;
  43. //[recomView addSubview:modelView];
  44. //
  45. //self.channelHeader = [[KBChildHeaderView alloc] initWithFrame:CGRectMake(Fitsize(10), 0, SCREEN_WIDTH-Fitsize(20), 0) delegete:self];
  46. @end