@@ -197,7 +197,7 @@ - (void)viewDidLoad {
197197
198198 self.navigationItem .rightBarButtonItem = [[UIBarButtonItem alloc ] initWithBarButtonSystemItem: UIBarButtonSystemItemAdd target: self action: @selector (showMenuOnView: )];
199199
200- NSMutableArray *dataSource = [[NSMutableArray alloc] initWithObjects:@"请问你现在在哪里啊?我在广州天河 ", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点进入聊天页面,这里有多种显示样式", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", nil];
200+ NSMutableArray *dataSource = [[NSMutableArray alloc] initWithObjects:@"华捷新闻,点击查看美女新闻呢! ", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点进入聊天页面,这里有多种显示样式", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"请问你现在在哪里啊?我在广州天河", @"点击我查看最新消息,里面有惊喜哦!", @"点击我查看最新消息,里面有惊喜哦!", nil];
201201 self.dataSource = dataSource;
202202
203203 [self .view addSubview: self .tableView];
@@ -222,15 +222,24 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
222222
223223 }
224224 if (indexPath.row < self.dataSource .count ) {
225- cell.textLabel .text = (indexPath.row % 2 ) ? @" 曾宪华" : @" 杨仁捷" ;
226- cell.detailTextLabel .text = self.dataSource [indexPath.row];
227- cell.imageView .image = [UIImage imageNamed: @" avator" ];
225+ if (!indexPath.row ) {
226+ cell.textLabel .text = self.dataSource [indexPath.row];
227+ cell.imageView .image = [UIImage imageNamed: @" dgame1" ];
228+ cell.detailTextLabel .text = nil ;
229+ } else {
230+ cell.textLabel .text = (indexPath.row % 2 ) ? @" 曾宪华" : @" 杨仁捷" ;
231+ cell.detailTextLabel .text = self.dataSource [indexPath.row];
232+ cell.imageView .image = [UIImage imageNamed: @" avator" ];
233+ }
228234 }
229235
230236 [cell.imageView setupCircleBadge ];
231237
238+ cell.textLabel .textColor = [UIColor blackColor ];
232239 if (indexPath.row == 4 ) {
233240 cell.detailTextLabel .textColor = [UIColor colorWithRed: 0.097 green: 0.633 blue: 1.000 alpha: 1.000 ];
241+ } else if (indexPath.row == 0 ){
242+ cell.textLabel .textColor = [UIColor colorWithRed: 0.429 green: 0.187 blue: 1.000 alpha: 1.000 ];
234243 } else {
235244 cell.detailTextLabel .textColor = [UIColor grayColor ];
236245 }
0 commit comments