Commit 35955189b34af0de9b01da787afba88c7bef0b50

Authored by 王军波
1 parent a806b970

hah

LiveVideoCloud/Classes/Sections/homeSections/Controller/LVCVodPlayerListController.m
... ... @@ -45,20 +45,10 @@ static NSString *vodCellId = @"vodCellId";
45 45  
46 46 _failedView.hidden = YES;
47 47  
48   - NSString *uid;
49   - if ([UserTools isLogin]) {
50   - uid = [UserInformationModel manager].uid;
51   - } else {
52   - uid = [NSString stringWithFormat:@"%u", arc4random()%3];
53   - }
54   - NSString *tm = [NSString stringWithFormat:@"%u_%@", arc4random()%10, uid];
55   -
56   - NSDictionary *parameter = @{@"cid": @"82_news/",
57   - @"page": [NSString stringWithFormat:@"%d", 1],
58   - @"pagesize": @"15",
59   - @"tm": tm};
  48 + NSDictionary *parameter = @{@"appId": UserAppId
  49 + };
60 50  
61   - [[AFHTTPRequestOperationManager manager] GET:Newslist parameters:[self addParameters:parameter] success:^(AFHTTPRequestOperation *operation, id responseObject) {
  51 + [[AFHTTPRequestOperationManager manager] POST:@"http://test.open.cnlive.com/openapi/api2/vod_epg/getVodListInfo4App" parameters:parameter success:^(AFHTTPRequestOperation *operation, id responseObject) {
62 52  
63 53 responseObject = [responseObject validatedDictionary];
64 54  
... ...
LiveVideoCloud/Classes/Sections/homeSections/View/LVCCommentView.m
... ... @@ -8,7 +8,7 @@
8 8  
9 9 #import "LVCCommentView.h"
10 10  
11   -@interface LVCCommentView() {
  11 +@interface LVCCommentView()<UITableViewDelegate, UITableViewDataSource> {
12 12  
13 13 CGSize _contentSize;
14 14 }
... ... @@ -17,6 +17,8 @@
17 17  
18 18 @property (nonatomic, strong) UILabel *contentLabel;
19 19  
  20 +@property (nonatomic, strong) UITableView *tableview;
  21 +
20 22 @end
21 23  
22 24 @implementation LVCCommentView
... ... @@ -34,15 +36,44 @@
34 36 - (void)setModel:(ProgramModel *)model {
35 37  
36 38 _titleLabel.text = model.title;
  39 + _contentLabel.text = model.desc;
  40 +}
  41 +
  42 +#pragma mark - UITableViewDelegate !!!!!!!!!!!!!!!!!!!!!
  43 +
  44 +#pragma mark - UITableViewDataSource !!!!!!!!!!!!!!!!!!!!!!!!
  45 +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  46 + return 2;
  47 +}
  48 +
  49 +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  50 +
  51 + return 2;
  52 +}
  53 +
  54 +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  55 +
  56 + return nil;
37 57 }
38 58  
39 59 #pragma mark - GetMethod !!!!!!!!!!!!!!!!!!!!!!
  60 +- (UITableView *)tableview {
  61 +
  62 + if (!_tableview) {
  63 + _tableview = [[UITableView alloc] initWithFrame:self.bounds style:UITableViewStylePlain];
  64 + _tableview.delegate = self;
  65 + _tableview.dataSource = self;
  66 + _tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
  67 + }
  68 + return _tableview;
  69 +}
  70 +
40 71 - (UILabel *)titleLabel {
41 72  
42 73 if (!_titleLabel) {
43 74 _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, KScreenWidth-20, 40)];
44 75 [_contentLabel setFont:[UIFont systemFontOfSize:22]];
45   - _titleLabel.text = @"将就开始疯狂涉及到法定分";
  76 + _titleLabel.text = @"标题";
46 77 }
47 78 return _titleLabel;
48 79 }
... ... @@ -53,7 +84,7 @@
53 84 _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, KScreenWidth-20, 100)];
54 85 [_contentLabel setFont:[UIFont systemFontOfSize:14]];
55 86 _contentLabel.textColor = [UIColor grayColor];
56   - _contentLabel.text = @"就当是妇女节阿斯顿和播放控件安徽的播放控件和巴萨的海景房吧圣诞节还发什么你打副本氨基酸等回复看见爱上对方阿斯顿发布密集恐惧恨不得能否";
  87 + _contentLabel.text = @"描述";
57 88 _contentLabel.numberOfLines = 0;
58 89 [_contentLabel sizeToFit];
59 90 _contentSize = _contentLabel.bounds.size;
... ...