iphone - how to decrease the height of table of class UITableViewController? -
i using table view in view controller uitableviewcontroller
. trying set height of table by
[self.tableview setframe:cgrectmake(0, 0, 320, 300)]; [self.tableview setbackgroundview:backimageview]; [self.tableview setseparatorcolor:[uicolor blackcolor]];
but not working. doesn't have xib there way that?
for know can't (if push/showmodal tableviewcontroller), view (in case tableview) of viewcontrollers resized automatically screen size (- status bar, navigationbar , tabbar). can set contentoffset
, contentinset
.
in case should work (might need change values):
self.tableview.contentinset = uiedgeinsetsmake(0 /*top*/, 0/*left*/, 160/*bottom*/, 0/*right*/);
Comments
Post a Comment