Web からJSON MutableArrayを取得します。YouTube の URL 文字列が含まれています..
意図は、各セルで実行することUIWebView
です。
私のコード: コードを実装する方法? ありがとう。
@property (nonatomic, strong) NSMutableArray* arrMovies;
@synthesize arrMovies;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyIdentifier"];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"MyIdentifier"];
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
}
cell.textLabel.text = [[self.arrMovies objectAtIndex:indexPath.row] valueForKey:@"title"];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ views | Duration: %i",
[[self.arrMovies objectAtIndex:indexPath.row] valueForKey:@"viewCount"],intMinutes];
return cell;
}