开发者

Fit UITableview within Scrollview

开发者 https://www.devze.com 2023-01-25 22:34 出处:网络
I created an application using a UITableview. But when I scroll the table view, I see a white space view before and after the table view. How can I fit the UITableview so it doesn\'t show that开发者_

I created an application using a UITableview.

But when I scroll the table view, I see a white space view before and after the table view. How can I fit the UITableview so it doesn't show that开发者_如何学Python empty view?

Here's an image of what happens when I scroll the UITableview.

Fit UITableview within Scrollview


Set the bounces property of the UITableView to FALSE.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html%23//apple_ref/occ/cl/UIScrollView

(UITableView inherits from UIScrollView)


The answer is...

tableView.bounces=FALSE;
0

精彩评论

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