Is it possible to enable the default iOS 7 camera effects when using UIImagePickerController? I know that it's possible to control the flash and the image quality, but I cannot find if it's possible to add the effects when capturing an image.
No, UIImagePickerController does not offer any of the filters that you see in the iOS 7 Camera app. You would need to build those using Core Image's CIFilters, or something like GPUImage.
Related
Is there a way/API to access built in IOS8 crop and rotate feature, i am creating an app in which i want to store an image after the user crops a particular selection of it. Can i use built-in crop/rotate IOS8 feature in my application using any obj-c/swift API..
If you are referring using code to corp and rotate then use CGContext API:
CGImageCreateWithImageInRect for corp.
CGAffineTransformRotate for rotate.
I am bulding an iOS8 app and i have noticed that on the iPhone 6 Plus my TabBars and Navigation bars are bigger than the stock Apple apps. I cant seem to find any documentation for this. How do i tell my top and bottom bars to resize for the bigger iPhones?
The screenshot below shows Maps next to my app. (Amended to show clock app instead.) I am pretty sure the clock app uses a TabBar Controller and not a toolbar as suggested below.
Do you have a proper Launch Image for the higher (#3x) resolution for the iPhone 6+? If you don't you're app is going to get scaled, which is probably why it looks bigger. Run your app with the debugger on an iPhone 6 Plus and look at the value of UIScreen.MainScreen.Scale. If it reports back "2.0", then you don't have a proper launch image for your app, the resolution is being scaled. Once you have the proper launch image, UIScreen.MainScreen.Scale should report back as 3.0.
As J2K said to you, your tab and navigation are ok. Apple Maps app uses searchbar at the top and toolbar at the bottom which are smaller. Don't waste time on this, ios will handle the size for this elements for you in all iphone sizes
We need to open the iPhone camera, to take images that will be saved to the camera roll.
I have read many examples here that all of them opens the UIImagePickerView.
Besides the fact that i cant understand why i have to open the picker view in order to open the camera , i just can't do that- i dont want the picker view, because i have my costumed photo album that we build, and we just need to have a little button in it, that opens the camera to take an image . without opening any other views above it .
Is that possible to use the camera without this pickerview that will cover my scene ?
or can i lead the user to the camera app and than take him back to my app ?
Thanks.
Instead of high level (i.e. Apple supplies the UI element) classes, you have to go to a more foundational (lower) level of API's, which would be AVCaptureDevice and AVCaptureDeviceInput.
And Apple has some nice source code available in their AVCam project.
If you want to display camera stream in you app without UIImagePickerController than you should you AVFoundation framework.
Here some some examples and tutorials:
take-photos-with AVFoundation
Custom camera
Displaying camera
I am new to iOS 5.0,
I want to know that,
Is there any method to capture the image from camera and retrieve it in application in iOS ?
Take a look at the Camera Programming Guide.
My goal seems simple: Replicate the behavior of the iPad 2 camera app with regard to previewing/taking still photos. Namely, I want to display the preview in a full-screen window.
Unfortunately this seems impossible on the iPad 2 with a UIImagePickerController. A UIImagePickerController must be hosted within a UIPopoverController, and according to the docs:
When changing the size of the popover’s content, the width value you specify must be at least 320 points and no more than 600 points.
This is fairly consistent with the results I've been seeing. Regardless of the size I specify, I see a small preview window. Is there a way to get around this with the UIImagePickerController?
The docs are confusing/wrong on this. You can also present the camera full screen using a navigation controller with presentModalViewController. This is exactly the same as on iPhone.
Note, this only works on a device, not on the simulator.