Did you ever happen to get this working? I was just giving it a look but the way I expected it to accept a cameraOverlayView
[myPicker.cameraOverlayView addSubview:myOverlayView];
did not make the application happy. Curious if you found any documentation other than the few lines in the beta release docs. Interested to see this in action.
Thanks,
Karl
Did you ever happen to get this working? I was just giving it a look but the way I expected it to accept a cameraOverlayView
[myPicker.cameraOverlayView addSubview:myOverlayView];
did not make the application happy. Curious if you found any documentation other than the few lines in the beta release docs. Interested to see this in action.
Thanks,
Karl
Here is info and sample code to produce a full screen camera with a custom overlay using changes that came with the iPhone SDK 3.1 beta 2.
Hi, maybe I'm just being reeaaallly stupid but I can't see any sample code on that page.
I took down the code after someone reminded me that the NDA restricts us from distributing prerelease code. The new UIImagePickerController docs should help a lot.
My BTLFullScreenCameraController is pretty simple. It subclasses UIImagePickerController and hides the camera controls, navigation bar and toolbar. It also stretches the view to fit the full screen.
Use your subclass just like a normal UIImagePickerController. It's easier to present it as modal, but I had trouble making a modal view respond to motion and touch events. (I'd still like to know how that works!) Strangely, I was able to make my non-modal full screen camera work, which lets hiBubble toggle the augmented reality view on and off by rotating the phone. But then in my Helpful iPhone Utilities example app (which will be publicly available again after 3.1 is released) I had to go modal since the non-modal full screen camera wasn't cooperating.
I just installed Xcode 3.1.4 and the new 3.1 Video Capture and Camera Controls sections are not in the Documentation. Did I do something wrong?...The Docs are the same
The current documentation does not appear to be updated. At least, the UIImagePickerController docs do not show what the online docs do.
The current documentation does not appear to be updated. At least, the UIImagePickerController docs do not show what the online docs do.
Thanks, I thought I was going crazy. Can anyone at least give me a command showing how to call the cameraOverlayView method. My syntax must be off and the docs don't show any syntax.
I can tell you that you need to alloc+init a UIImagePickerController and set the overlayView property to a non-opaque view. Then display the camera by calling presentModalViewController on the parent controller (probably self).
I can tell you that you need to alloc+init a UIImagePickerController and set the overlayView property to a non-opaque view. Then display the camera by calling presentModalViewController on the parent controller (probably self).
I dont have a github username. Only used it to grab the appsales-mobile app which is amazing.
Can you send me the link to the github project. I am searching for it but don't see anything about the camera.
The project is private until OS 3.1 is released because Apple's NDA. If you want access before then (rumors say mid-September) then just create a free account and send me your username. Mine is pmark.
The project is private until OS 3.1 is released because Apple's NDA. If you want access before then (rumors say mid-September) then just create a free account and send me your username. Mine is pmark.
The project is private until OS 3.1 is released because Apple's NDA. If you want access before then (rumors say mid-September) then just create a free account and send me your username. Mine is pmark.
pmark:
Can you answer this.
Is the cameraOverlayView property only able to handle one UIView? My guess is yes. What if you want to overlay many different images, buttons etc on top of the Camera.... Do you have to create a separate UIView, add all the objects to that view and them make that separate view the cameraOverlayView?
When trying this on 3.0 and adding the separate view as a subview of the camera picker the buttons are not clickable etc. If you add them individually as subviews to the camera picker it all works out fine.
Can you think of anything I could be doing wrong? It seems odd that adding them to another view and then adding that view to the camera should act different, or am I in left field here?
Did you ever happen to get this working? I was just giving it a look but the way I expected it to accept a cameraOverlayView
[myPicker.cameraOverlayView addSubview:myOverlayView];
did not make the application happy. Curious if you found any documentation other than the few lines in the beta release docs. Interested to see this in action.
Thanks,
Karl
Think that you do not have any overlay view instanciated. So instead of adding try to assign a UIImage view first.
The project is private until OS 3.1 is released because Apple's NDA. If you want access before then (rumors say mid-September) then just create a free account and send me your username. Mine is pmark.
The project is private until OS 3.1 is released because Apple's NDA. If you want access before then (rumors say mid-September) then just create a free account and send me your username. Mine is pmark.
pmark: can you give me access to the github project you mention here:\
"Also, there's a private github repository with sample full screen camera code. Let me know your github username and I'll add you..."
I'm trying to implement my own button on a cameraOverlayView and use the takePicture method to capture photos. Does anyone know how to go about implementing this? How could it be done from "within" the UIImagePickerController?
I'm trying to implement my own button on a cameraOverlayView and use the takePicture method to capture photos. Does anyone know how to go about implementing this? How could it be done from "within" the UIImagePickerController?
Done and done and then some. You can now use BTLFullScreenCameraController to capture the camera and overlay views. The image is then saved to the photo album and also to a file named image.png in the documents directory.
Wouldn't it be nice if one of you fine people wrote code to upload image.png to a Facebook group?
Done and done and then some. You can now use BTLFullScreenCameraController to capture the camera and overlay views. The image is then saved to the photo album and also to a file named image.png in the documents directory.
Wouldn't it be nice if one of you fine people wrote code to upload image.png to a Facebook group?
Done and done and then some. You can now use BTLFullScreenCameraController to capture the camera and overlay views. The image is then saved to the photo album and also to a file named image.png in the documents directory.
Wouldn't it be nice if one of you fine people wrote code to upload image.png to a Facebook group?
Thanks for giving me early access to the repo recently, it was very helpful.
Sure thing. Stay tuned for some nice additions to the full screen camera controller. A thumbnail appears after taking a picture, and tapping the thumbnail brings up a preview of the photo. Tap the photo to send it via email.
I really don't mean to threadjack but I have been pulling my hair out...
I am trying to add a UIButton the the cameraoverlayview. The button appears fine but does not work.
Here is where I make the button and add it to the view:
I really don't mean to threadjack but I have been pulling my hair out...
I am trying to add a UIButton the the cameraoverlayview. The button appears fine but does not work.
Here is where I make the button and add it to the view: