开发者

non-fullscreen tableview in the nib

I want to make an app with a uiTableview that is a quarter of the size of the screen. I started the project with the Navigation-based Application. Now I want to change the table-view to not fill the whole screen, but haven't managed to do so. I searched the web for an answer but haven't been able to find a solution.

Am I on the right track if I put the tableview into another view in the 'R开发者_如何学CootViewController.xib'?

Thanks in advance!


You could put your UITableView inside another UIView and just make it the size you want. You can put another view below (or above) it or just leave it blank or do whatever you like (banners)?

If you're using a UITableViewController, that will not do. You can, however, keep the implementation code of your class and change the controller class to UIViewController<UITableViewDelegate,UITableViewDataSource>.

Don't forget to point the view of the controller to the UIView you created, instead directly to the UITableView object.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜