Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView position
    primarykey
    data
    text
    <p>my app uses a tab bar with 2 navigation based views in which I am adding a custom view (a title bar) between the nav bar and the table view .</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; // load title bar controller TitleBarViewController *tbar = [[TitleBarViewController alloc] init]; [tbar setTitleImage:[UIImage imageNamed:@"v2-une.png"]]; [self setTitleBar:tbar]; [tbar release]; // show title bar [self.navigationController.view addSubview:self.titleBar.view]; .... </code></pre> <p>When the application is launched with a default selected nav view, I use (void)viewDidAppearBOOL)animated to set the table view to a lower Y value so that the title bar is visible.</p> <p>Where Y = 20 : 20 is the height of my title bar.</p> <pre><code>self.tableView.frame = CGRectMake(0, 20, 320, 347); </code></pre> <p>The problem is that when I select a row and push a detail view and hide the bottom bar to display a toolbar, things are messed up. my title bar's height increases and becomes > 20 which I can't explain why.</p> <p>Now when I go back to the main table view, its Y is decreased by 20 and sticked to the nav bar. My title ben then appears above the first cell of the table view.</p> <p>If hit the 2 tab and then go back to the 1st tab, everything is re arranged like expected.</p> <p>here are some pics to illustrate all that : <a href="http://www.xilionlabs.com/images/step1.png" rel="nofollow noreferrer">link text</a></p> <p>can anyone help me figure out why is this happening please ? may be I am putting my positioning code in the wrong event ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload