问题
i want to make compatible my apps with iOS 5. Everything goes well with iOS 4.3. After changing the main project and target compiler settings to Apple LLVM compiler 3.0, and set the Three20 project and target settings to LLVM GCC 4.2 i ran the application. Application runs well but at the photo gallery screen there is something which i do not want. There is the screenshot.
iOS 5 http://www.portxl.com/ios/5.png
There is a rectangular block above the thumbnails. I ran the same application with the same codes in iOS 4.3 and there is no block. Screenshot is below.
(source: portxl.com)
Waiting your suggestions, thanks in advance.
There is a quick note : when i change Three20 project and target settings to Apple LLVM compiler 3.0, there is an error in a class of three20. When i scroll the tableview rectangular block comes with the tableview.
回答1:
the problem is in TTTableViewDelegate,
- (CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section;
in iOS 5, this method must return 0 if you don't want the header section.
you can check the latest three20, it's been resolved.
来源:https://stackoverflow.com/questions/7836296/ios-5-and-three20-sdk