Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-02-2008, 01:05 PM   #1 (permalink)
peejavery
Registered Member
 
Join Date: Aug 2008
Posts: 162
Default Change left navigation button from text to image

When pushing a new view controller, the "back" button uses the title of the previous view. Is there a way to make it so that it is UIBarButtonSystemItemBookmarks instead?

I've tried the following but it doesn't work.

Code:
UIBarButtonSystemItem btnItem = UIBarButtonSystemItemBookmarks;
UIBarButtonItem *btnSearch = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:btnItem target:self action:self.navigationItem.leftBarButtonItem.action];
self.navigationItem.leftBarButtonItem = btnSearch;
peejavery is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,297
Threads: 39,093
Posts: 171,397
Top Poster: smasher (2,575)
Welcome to our newest member, thinriver
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:28 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.