iphone - How to reposition UITableView? -
I have a UITableViewController and I want to add a navigation bar for it. Therefore, after the navigation bar (which works fine), part of the original table view is being covered by the nav bar.
I tried to change the table view using:
self.tableView.frame = CGRectMake (0, 44 + 20 / * nab height + some margin * /, 320, 416);
But table status will not be
self.tableView.frame < / Code> This does not work for me, throws the error, but
- I
tableviewinIB - Setting, file
IBOUTLET UITableView * myTabli; - Connect
FileOwnerandtableView & gt; From MyTablitoIB - I can call
myTabli.frame = CGRectframe (x, y, width, height);in-file
works for me.
Comments
Post a Comment