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 UITableView
s programatically, I never put them in UITableViewController
s, but in classical UIViewController
s 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.
精彩评论