I need to show the Photo Flash Animation present in the Photo Booth Mac application in iOS.
How to do that one?
The "flash" in Photo Booth for Mac is just a white surface, isn't it. To replicate it, I would:
Create a transparent window that covers the entire screen (or multiple windows if there are multiple screens).
Place a CALayer inside the window. Then animate the change of the layer's background color from transparent to white and back.
Remove the window from the screen.
Related
I am developing an app that uses UIImagePickerController to capture photos in my current app. I would like to display grid lines (like the original iOS camera app).
At the moment I am adding a custom view as an overlay over my camera preview to draw the grid but the problem is I can’t never get it to be perfectly positioned on all devices. It’s a lot of manual math and guessing what position works on each of devices.
I am wondering is there any better solution than what I am doing.
Thank you
I am trying to add custom camera functionality in my app following this tutorial.Appcoda custom camera
I am able to achieve all the functionailties of camera like taking photo,flash and switch camera but before the camera comes,white screen comes for a second.I want the camera to open directly .Kindly give some suggestion that how can I get the camera functionality directly without getting any white screen.
That white screen in actually Launch Screen, which comes by default, if you wish to change that you may go to LaunchScreen.storyboard and change UI there.
You can also remove LaunchScreen property in info.plist file, which is not advisable but that'll just display black screen instead of while while launching the App.
how can I know when the camera preview is showed after the picture is taken? I want this because I'm using an overlay and when the app goes to the camera preview, the bottom bar gets smaller and so my overlay doesn't cover all the screen, all that I want is to resize this overlay when the camera preview is shown.
I solved using a translation for down on "camerapicker.transform" property, so now taken picture would be at the same position as while taking the photo, so the overlay would also would be in the same position.
I need a view controller for user to crop and rotate image.
And I think the UI which iOS8 photo app did is very awesome
But I found only these two :
https://github.com/heitorfr/ios-image-editor
https://github.com/kishikawakatsumi/PEPhotoCropEditor
These are useful, but when making image smaller than the crop area, to move or rotate the image is very difficult, and the respond is very weird.
After using these, I think the iOS8 photo app's crop and rotate function is much better
So is there a view controller performs image crop and rotate like iOS 8 photo app?
Try The following:
https://github.com/itouch2/PhotoTweaks
https://github.com/yackle/CLImageEditor
They enables similar functionality as the native Photos app in iOS8.
I am currently trying to figure out how to change the splash screen (default png) in iOS.
From what I understand, the ideal way to present an application to the user at the very beginning is to have the launch image a skeletal representation of the UI elements in the app (like this: http://h.dropcanvas.com/u90tr/IMG_0388.png).
Now, in my application, when I switch tabs and go to another app or the home screen, when I return to the application, the splash image is no longer relevant to that particular tab.
Ideally, what I would like to do is programmatically change the launch image in applicationDidEnterBackground so I can present a relevant splash screen when returning to the application.
Many thanks for your help!
You can't do this, and shouldn't need to bother. The launch image (it is NOT a splash screen!) is only used when your application is launched from scratch. If its just been into the background, the OS will take its own snapshot and use that when you return to the app.
Your launch image therefore only needs to show a basic representation of your app as it will appear when launched from scratch. If you have a tab bar, it shouldn't show any icons or labels (as they can change with localisation) - literally just the black glossy background, all the way across. In your link, I would lose the bar button item, for example.
If you can't make a representative image, a plain black image (or no image at all) would be best.