开发者

Fit UITableview within Scrollview

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜