I have developed an iOS app and issues with using an image as left-button button items in navigation The bar has been done. I have tried this in the following ways: The bar button is never displayed while running the app. So I went off to try this other method This method actually works, however, the image displayed was painted with blue and it was not visible as it meant. The tint of this image did not help to change the color. Any ideas how can I solve this problem? EDIT: More info, if it helps, it is the first view in the navigation stack. The navigation stack is displayed normally, i.e. is the former view controller and there is a model between the previous view controller and the navigation controller. This is the first view in the navigation stack. EDIT: The problem has been fixed. I think this was a bug in the exode because when I started the encode and tested it with an actual device instead of the emulator, then it works fine. However, still does not seem to work on an emulator.
UIImage * backButtonImage = [UIImage imageNamed: @ "backbuttonCB"]; CGTT buttonFrame = CGRactMake (0, 0, Backbutmanimage. EyesWith, BackbuttonizeEx.EightHight); UIButton * backButton = [[UIButton alloc] initWithFrame: ButtonFrame]; [Backbutton set image: backbutton image status: uiCantolstadt normal]; UIBarButtonItem * backBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView: backButton]; Self.navigationItem.leftBarButtonItem = backBarButtonItem;
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:. [UIImage imageNamed: @ "backbuttonCB"] Style: UIBarButtonItemStylePlain Target: zero Action: @Selector (filename)];
Monday, 15 February 2010
ios - leftbarbuttonitem does not show up in the navigation bar -
After typing "text" itemprop = "text">
try setting your leftBarButtonItem this way. While presenting the form it does not show.
self.navigationController? .navigationBar.topItem.leftBarButtonItem =
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment