How can I make an iphone application that uses a UITableView but so the it won't ocupy all the screen? I want to put below some buttons that will have the role of tabs so when i press one, a different UIView(UiTableVIew) wi开发者_StackOverflow中文版ll show above. I know I have to extend somehow the class and modify it's apearance but it can't find an example so that the table is not the main view I have something like this
View
-TableView
-UIImage (as background)
-button1
-button2
-button3
-button4
-button5 (will use this as a badge)
here's an example screen shot for the layout
I know it's not very standard, usualy you do this with the upper part bar.. but it's the way I have to make it so it has been chosen...
Thank you guys
Easy: 1) don' use a UITableViewController, use a subclass of UIViewController 2) in your xib file (or your code), set the frame of the UITableView however you like 3) don't forget to have your UIViewController class confom to UITableViewDataSource and UITableViewDelegate protocols, and to set your UIViewController as the delegate of the UITableView object.
精彩评论