Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-23-2010, 06:37 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default ToolBar image..

Can we add a color image to UIToolbar?I tried to add a color image but it is shown as white black image.
__________________
Thanks
Santosh
santosh_kumar is offline   Reply With Quote
Old 11-23-2010, 06:48 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Yes youcan, but not user UIBarButtonItem.
You will have to add a normal UIButton to a UIBarItem via code.
Then add the UIBarItem to the UIToolBar.
TUX2K is offline   Reply With Quote
Old 11-23-2010, 07:41 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by TUX2K View Post
Yes youcan, but not user UIBarButtonItem.
You will have to add a normal UIButton to a UIBarItem via code.
Then add the UIBarItem to the UIToolBar.
Thanks for your replay TUX.I just executed the same as you mentioned. Is there any other way? I guess it is not the proper way to do.
__________________
Thanks
Santosh
santosh_kumar is offline   Reply With Quote
Old 11-23-2010, 07:47 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Well this is a proper way to do it

Well you could add a UIButton via IB set all the images and drag it on to the toolbar, but it's not as much fun as doing it via code
TUX2K is offline   Reply With Quote
Old 11-23-2010, 10:24 PM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by TUX2K View Post
Well this is a proper way to do it

Well you could add a UIButton via IB set all the images and drag it on to the toolbar, but it's not as much fun as doing it via code
Fine, i need to design programmatically.
__________________
Thanks
Santosh
santosh_kumar is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone & ipod touch apps

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 372
7 members and 365 guests
apatsufas, Kirkout, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0