Note that there are some explanatory texts on larger screens.

plurals
  1. POUINavigationController does not take the precedent view title
    text
    copied!<ul> <li><p>I've a simple view titled <em>"firstView"</em> (using this code in the ViewDidLoad method : <code>[self setTitle:@"firstView"</code>), which contains just one button. When I click on this button, my app show an other view (called <em>"secondView"</em>), thanks to the following code :</p> <pre><code>- (IBAction)btnShowAnOtherView:(id)sender { secondView *secondView = [[secondView alloc] initWithNibName:@"secondView" bundle:nil]; [self.navigationController pushViewController:secondView animated:YES]; } </code></pre> <p>Then, the new view (i.e <em>"secondView"</em>) set automatically the navigation bar back button title to <em>"firstView"</em>. <strong>So all works fine</strong>.</p></li> <li><p>I've a simple view titled <em>"thirdView"</em> (using this code in the ViewDidLoad method : <code>[self setTitle:@"thirdView"</code>), wich contains a UITableView. When I click on a cell, my app show an other view (called <em>"fourthView"</em>), thanks to the following code :</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { fourthView *fourthView = [[fourthView alloc] initWithNibName:@"fourthView" bundle:nil]; [self.navigationController pushViewController:fourthView animated:YES]; [tableView deselectRowAtIndexPath:indexPath animated:YES]; } </code></pre> <p>But the new view (i.e <em>"fourthView"</em>) has a navigation bar back button title set to <em>"Back"</em>, not to <em>"thirdView"</em>. <strong>Why ?</strong></p></li> </ul> <p>Here is the thirdView : <a href="http://imageshack.us/a/img818/8886/ldp9.png" rel="nofollow">http://imageshack.us/a/img818/8886/ldp9.png</a></p> <p>Here is the fourthView : <a href="http://imageshack.us/a/img33/2444/5y0k.png" rel="nofollow">http://imageshack.us/a/img33/2444/5y0k.png</a></p> <p>Thanks for your help...</p>
 

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