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 12-29-2009, 04:25 PM   #1 (permalink)
Super cool guy.
 
Join Date: Oct 2008
Location: Summerville, SC
Posts: 29
Angry Image Move & Resize not working when using custom camera overlay?

I used to use the old-school method of adding an overlay to the camera screen, and that worked fine. However, since 3.1 came out, Apple is insisting that I use the API to add an overlay. I quickly got the overlay to work, but it seems that if I use the custom overlay, then the move & resize screen is not responsive, I can only use or retake, can't actually resize & move. The code I am using is below. I have tried several variations, but the only thing that actually enables the move & resize is to remove the line that adds the custom overlay view.

Any ideas?

Code:
UIImage *image = [UIImage imageNamed:@"camera-template-long.png"];
UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)] ;
imgView.image = image;
		
UIView *overlayView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
overlayView.opaque = NO;
[overlayView addSubview:imgView];
		
UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;		
picker.showsCameraControls = YES;
picker.cameraOverlayView = overlayView;
picker.delegate = self;
picker.allowsEditing = YES;
		
[self presentModalViewController:picker animated:YES];
jeremieweldin is offline   Reply With Quote
Old 02-08-2010, 09:02 PM   #2 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by jeremieweldin View Post
since 3.1 came out, Apple is insisting that I use the API to add an overlay. I quickly got the overlay to work, but it seems that if I use the custom overlay, then the move & resize screen is not responsive, I can only use or retake, can't actually resize & move.
Did you sort this out? I am running into a similar issue. I get the move and resize to display, but it is not responding to touches. Thanks for any insight you can share.
DenVog is offline   Reply With Quote
Old 02-09-2010, 12:53 AM   #3 (permalink)
Super cool guy.
 
Join Date: Oct 2008
Location: Summerville, SC
Posts: 29
Default

Quote:
Originally Posted by DenVog View Post
Did you sort this out? I am running into a similar issue. I get the move and resize to display, but it is not responding to touches. Thanks for any insight you can share.
Nope. I still have the same issue that you have. The screen shows up, but doesn't respond to touches to actually move or resize the image.
jeremieweldin is offline   Reply With Quote
Old 04-05-2010, 11:57 AM   #4 (permalink)
Super cool guy.
 
Join Date: Oct 2008
Location: Summerville, SC
Posts: 29
Default

Quote:
Originally Posted by jeremieweldin View Post
Nope. I still have the same issue that you have. The screen shows up, but doesn't respond to touches to actually move or resize the image.
Bump. Anyone solved this issue yet?
jeremieweldin is offline   Reply With Quote
Old 04-05-2010, 01:20 PM   #5 (permalink)
Super cool guy.
 
Join Date: Oct 2008
Location: Summerville, SC
Posts: 29
Default

Quote:
Originally Posted by jeremieweldin View Post
Bump. Anyone solved this issue yet?
Found the answer.

Image Move & Resize not working when using a custom camera overlay iPhone SDK 3.1+ - Stack Overflow
jeremieweldin 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
» Online Users: 276
26 members and 250 guests
ADY, Bertrand21, Dani77, Dattee, fkmtc, HDshot, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, jimbo, macquitzon216, MACralik, mer10, NSeven, prchn4christ, Rudy, sacha1996, silverwiz, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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