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 09-14-2009, 12:33 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 157
Default Camera to Cell Image, half the time...

Im trying to change the cell image to be an image from the camera. This is the code i have that is initiated when you click the cell. It works about 40% of the time. It will crash the app, then i try it again... and it works... no rhyme or reason to it! Anybody have idea how i could fix it? Oh and cameraimage is a UIImage i defined...

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.allowsImageEditing = YES;
[self presentModalViewControllericker animated:YES];
[picker release];

- (void)imagePickerControllerUIImagePickerControll er *)picker didFinishPickingImageUIImage *)image editingInfoNSDictionary *)editingInfo {
cameraimage = image;
[picker dismissModalViewControllerAnimated:YES];
[self.tableView reloadData];
}


under the definition of the cell i have this:

cell.image = cameraimage;
__________________
Check out our Apps!
Boxen4Oxen
VisCenter

Film Budget

Everwell TV
starwarsdevwookie59 is offline   Reply With Quote
Reply

Bookmarks

Tags
camera, cell

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: 261
15 members and 246 guests
@sandris, ADY, Alsahir, dacapo, Dani77, Desert Diva, djohnson, HemiMG, jansan, JasonR, MarkC, prchn4christ, smethorst, tomtom100
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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