我遇到兩個問題:自定義標題中的tableview使用UITableView的自定義頁眉放緩的iPhone 3G與3.1.3
1)大的是自定義頁眉都在放緩了不少列表的滾動一個真正的iPhone 3G 3.1.3,而在模擬器或真正的iPad上仍然是完美的。這是我使用的代碼:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
UIView *headerView = [[HeaderView alloc] init];
headerView.alpha = 0.7;
UITextView *label = [[UITextView alloc] initWithFrame:CGRectZero];
label.textColor = [UIColor whiteColor];
switch (section) {
case 0:
label.text = @"Mattina";
break;
case 1:
label.text = @"Pomeriggio";
break;
case 2:
label.text = @"Sera";
break;
default:
label.text = @"";
break;
}
[headerView addSubview:label];
return headerView;
}
2)使用上面的代碼標題標籤不顯示...哪裏的錯誤?
謝謝!
這是不會改變什麼... – Abramodj 2011-03-04 09:33:30
你可以把默認塊'label.text = @「默認」;'和檢查程序再次。 – Robin 2011-03-04 09:49:28
仍然一樣......不過感謝您的幫助! ;-) – Abramodj 2011-03-04 10:16:47