开发者

ipad UITableViewController full screen

I am 开发者_开发知识库converting my app to run on the ipad.

I have a view which is a UITableViewController. How can I cause the table to fill the screen with excess space filled with a background color when the table isn't tall enough.


All depends on the frame you give to the view controller. But most of the time I don't use an UITableViewController but just an UITableView. It's more simple to handle it to do things you want ^^

To fill the excess space you just need to set a backgroundColor to the superView. If it's because you have less cells, then you could try setting the color to the uitableview view and setting color to the cell. Maybe if you could give us a screenshot it would be easier :-) (or some pieces of code ^^)

Good Luck !

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜