开发者

Why Extra Padding on top of ThumbnailView?

开发者 https://www.devze.com 2023-01-14 10:56 出处:网络
I am using Three20\'s TTThumbViewController. Everything works fine except for a padding on top of the thumbnail table which appears开发者_如何转开发 to be reserved for the navigation header, except th

I am using Three20's TTThumbViewController. Everything works fine except for a padding on top of the thumbnail table which appears开发者_如何转开发 to be reserved for the navigation header, except that it takes the place right below the header. How can I get rid of this white space?

Why Extra Padding on top of ThumbnailView?


I dont know why this works for sure, but I faced the same problem and found this solution at google group.

Override updateTableLayout in your TTThumbsViewController

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号