开发者

Lowering UITableView

I've been trying to put UITableView a little bit lower because of a modal panel that I'm displaying in top of the screen in my iphone application.

I've tried resizing the navigationBar (altough at the end I want to hide it) with a hope that it'd push the UITableView - although without luck. Then I've tried setting the frame and bounds rects of the UITableView manually, but it d开发者_StackOverflow中文版idn't work either.

Could someone more experianced show me the right way to do it? Thanks,


When I create UITableViews programatically, I never put them in UITableViewControllers, but in classical UIViewControllers where I define the tableView's frame on first display. That allows for greater flexibility.

Read this thread for more info: http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/


Use the contentInsets property of the tableview to lower it how much you want.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜