How to change text on a back button

Posted by Ilya on Stack Overflow See other posts from Stack Overflow or by Ilya
Published on 2009-05-07T16:09:58Z Indexed on 2010/04/28 3:33 UTC
Read the original article Hit count: 210

Filed under:
|

Hi,

By default the back button uses as a text on it a title of a viewcontroller. Can I change text on the back button without changing a title of a view controller? I need this because I have a view controller which title is too long to display and in this case I would like to display just "Back" as a caption for back button.

I tried the following which didn't work:

self.navigationItem.leftBarButtonItem.title = @"Back";

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch