I write an iPhone application using Three20 library to display thumbnail images. At first I build the app using XCode 4.0.2 with iOS SDK 4.3 and I used deployment target 4.2. It did fine, the images appeared normally.

thumbnail image in iOS 4.3 Simulator

Then I upgraded to XCode 4.2 with iOS 5 SDK and ran the app with iOS 5.0 simulator, there's white bar in there.

thumbnail image in iOS 5.0 simulator

I don't know what is this thing exactly maybe some kind of border or something that I don't know. Any help or clue would be appreciated. Thanks.

有帮助吗?

解决方案

Here's what I did to make it work..

Create a subclass of TTThumbsViewController, then do the following:

  1. in ViewDidLoad, include this line

    self.tableView.sectionHeaderHeight = 0;

  2. Overwrite - (void)updateTableLayout to the following

    -(void)updateTableLayout { self.tableView.contentInset = UIEdgeInsetsMake(/TTBarsHeight()+/4, 0, 0, 0); self.tableView.scrollIndicatorInsets = UIEdgeInsetsMake(TTBarsHeight(), 0, 0, 0); }

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top