의있는 UITableViewCell 하나 개의 UIWebView를 추가, 각각의 tableview를 포함하는 하나의 셀을 가지고 있으며, 지금은이 두 tableviews '세포이 UITableViews 내가 두 tableviews이
- (void)loadView
{
interestView = [[UIWebView alloc] initWithFrame:_webViewFrame];
interestView.delegate = self;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
}
//interestView is UIWebView
if (tableView == interestTableView) {
[cell.contentView addSubview:interestView];
}else if (tableView == headerTableView) {
[cell.contentView addSubview:interestView];
}
}
하나 개의 UIWebView를 추가 할하지만이 작동하지 않을 수있다 두 테이블 셀 UIWebView 표시되지 않습니다. 어떤 생각?
두 tableView의 각 셀이 하나만 있고 그 셀에 UIWebView를 추가하고 싶습니까? –
그것은 매우 이상한 상황입니다 ...'interestView'는 무엇입니까? 어떻게 침입 했습니까? – holex
@NayanChauhan 예, 맞습니다. UIWebView는 동일합니다 –