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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-27-2009, 06:17 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 6
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, 06:44 PM   #2 (permalink)
Registered Member
 
rwenderlich's Avatar
 
Join Date: Aug 2009
Posts: 152
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, 12:02 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 6
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, 05: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


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 327
14 members and 313 guests
AgCode, ansonl, beginer2007, bluelobster, ceggert, Eagle11, irishkiwi, Jeremy1026, kindelizaxi, mallmertl, mcgrath3, Rudy, slahteine, vargonian
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,221
Threads: 39,001
Posts: 171,067
Top Poster: smasher (2,569)
Welcome to our newest member, kindelizaxi
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:58 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0