I have a custom view for my tableview’s header
UIView *headerTableview_;
@property (nonatomic, retain) IBOutlet UIView *headerTableview;
I have connected it to xib file.
Then in .m file,
@synthesize headerTableview = headerTableview_;
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return headerTableview_.frame.size.height;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
return headerTableview_;
}
Then, I try to run it, in iOS 6 it’s displayed well, but in iOS 4.3, it’s not displayed at all.
What could be the problem? Anyone knows how to fix this weird problem?
Thanks!
In your .h file
In your .m file