简体   繁体   English

iOS 5和Three20 SDK

[英]iOS 5 and Three20 SDK

i want to make compatible my apps with iOS 5. Everything goes well with iOS 4.3. 我想使我的应用程序与iOS 5兼容。一切都与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. 将主项目和目标编译器设置更改为Apple LLVM编译器3.0,并将Three20项目和目标设置设置为LLVM GCC 4.2之后,我运行了该应用程序。 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 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. 我在iOS 4.3中使用相同的代码运行了相同的应用程序,没有任何障碍。 Screenshot is below. 屏幕截图如下。

iOS 4.3
(source: portxl.com ) (来源: 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. 有一个简短的注释:当我将Three20项目和目标设置更改为Apple LLVM编译器3.0时,Three20类中出现错误。 When i scroll the tableview rectangular block comes with the tableview. 当我滚动时,tableview矩形块随tableview一起提供。

the problem is in TTTableViewDelegate, 问题出在TTTableViewDelegate中,

- (CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section;

in iOS 5, this method must return 0 if you don't want the header section. 在iOS 5中,如果您不希望标题部分,则此方法必须返回0。

you can check the latest three20, it's been resolved. 您可以查看最新的Three20,此问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM