テーブルビューのヘッダー用のカスタム ビューがあります
UIView *headerTableview_;
@property (nonatomic, retain) IBOutlet UIView *headerTableview;
私はそれをxibファイルに接続しました。
次に、.m ファイルで、
@synthesize headerTableview = headerTableview_;
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return headerTableview_.frame.size.height;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
return headerTableview_;
}
それから実行してみると、iOS 6 ではうまく表示されますが、iOS 4.3 ではまったく表示されません。
何が問題なのですか?この奇妙な問題を解決する方法を知っている人はいますか? ありがとう!