0

I have a UIViewController with title "La Bolsa al minuto". When I push to another VC, I can see the back button with text "< Back". This is the code:

self.title = @"La Bolsa al minuto";
[self.navigationController pushViewController:detail animated:YES];

If I shorten the title (one letter is enough), the back button item displays "< La Bolsa al minut".

self.title = @"La Bolsa al minut";
[self.navigationController pushViewController:detail animated:YES];

Is there any way to reduce that title size to let me display the full title?

jherran
  • 3,337
  • 8
  • 37
  • 54

1 Answers1

0

In UIViewController with title "La Bolsa al minuto".

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

//Title for 1 VC
    self.title = @"La Bolsa al minuto";

//Title for back button
    self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"La Bolsa..."
                                                                             style:UIBarButtonItemStylePlain
                                                                            target:nil
                                                                            action:nil];
}
OMGHaveFun
  • 838
  • 1
  • 10
  • 16