
Untitled
By: a guest on
Apr 26th, 2012 | syntax:
Objective C | size: 0.74 KB | hits: 18 | expires: Never
if (indexPath.section == 1 && indexPath.row == 0) {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"WebViewCell"];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"WebViewCell"] autorelease];
UIWebView *_webView = [[UIWebView alloc] initWithFrame:cell.contentView.bounds];
_webView.backgroundColor = [UIColor clearColor];
_webView.opaque = NO;
_webView.delegate = self;
_webView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[cell.contentView addSubview:_webView];
[_webView release];
}
return cell;
}