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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 10-27-2009, 07:17 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 9
Default Image getting excluded from build??

Sorry if this is a n00b question (self-admitted n00b), but having a strange problem hoping someone could assist with. I recently added a trashcan.png image to a Delete button for a list view - code extract below:
UIButton *deleteButton = [UIButton buttonWithType:UIButtonTypeCustom];
deleteButton.bounds = CGRectMake(0.0, 0.0, 100, 30);
[deleteButton setBackgroundImage: [[UIImage imageNamed: @"redbutton-1.png"] stretchableImageWithLeftCapWidth:5.0 topCapHeight:0.0] forState:UIControlStateNormal];
[deleteButton setImage:[UIImage imageNamed: @"trashIcon.png"] forState:UIControlStateNormal];
deleteButton.titleLabel.font = [UIFont systemFontOfSize:12];
[deleteButton setTitle: @"Delete" forState:UIControlStateNormal];
[deleteButton addTarget:self action:@selector(bookmarkDeleteButtonAction forControlEvents:UIControlEventTouchUpInside];
deleteButton = [[UIBarButtonItem alloc] initWithCustomView:deleteButton];

NSArray *barButtonArry = [[NSArray alloc]initWithObjects:flexSpace,deleteButton,flexSpace,c ancelButton,flexSpace, nil];
The trashcan picture appears when running the app from the simulator, but doesn't appear when deploying/running from my device.

Any hints? Many thanks in advance!
wallyyoung is offline   Reply With Quote
Old 10-27-2009, 07:44 PM   #2 (permalink)
Registered Member
 
rwenderlich's Avatar
 
Join Date: Aug 2009
Posts: 162
Default

One thing to check... the device is more stringent about capitalization on the filenames... is your image capitalized exactly as "trashIcon.png"?
__________________
Check out my iPhone development blog!

Motivate yourself to become an expert with LevelMeUp!

--Ray Wenderlich
rwenderlich is offline   Reply With Quote
Old 10-28-2009, 01:02 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 9
Default

Quote:
Originally Posted by rwenderlich View Post
One thing to check... the device is more stringent about capitalization on the filenames... is your image capitalized exactly as "trashIcon.png"?
Good call that was it! Thanks much.
wallyyoung is offline   Reply With Quote
Old 02-09-2010, 06:01 AM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 4
Default Same problem here, Thanks

I had the same problem and found the answer here in this thread.

Thank You both.
morganc is offline   Reply With Quote
Reply

Bookmarks

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
» Stats
Members: 158,769
Threads: 89,202
Posts: 380,577
Top Poster: BrianSlick (7,129)
Welcome to our newest member, hpnotebooo
Powered by vBadvanced CMPS v3.1.0

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