iOS 5 and Three20 SDK

左心房为你撑大大i 提交于 2020-01-24 13:09:44

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!