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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -