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

  1. I tableview in IB
  2. Setting, file IBOUTLET UITableView * myTabli;
  3. Connect FileOwner and tableView & gt; From MyTabli to IB
  4. I can call myTabli.frame = CGRectframe (x, y, width, height); in-file

works for me.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -