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

View Single Post
Old 10-27-2009, 07:17 PM   #1 (permalink)
wallyyoung
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
 

» Advertisements
» Online Users: 327
18 members and 309 guests
ADY, BdR, Diegan, djohnson, Duncan C, F_Bryant, glenn_sayers, Herbie, ilmman, Joseph Nardone, M@realobjects, Profile, rob.mccarthy, rodgo, TheWebWizz, VikMyr, vogueestylee, yomo710
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,705
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:55 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.