I've problem to resize the tabbar in camera view.
Is it possible to decrease the height of the camera tabbar in iPhone5?
Are you talking about a camera view presented from a UIImagePickerController? Because if so, no. There is no direct way to customize the action bar of of the image picker beyond adding other views on top of it. You'd probably have to create a custom capture setup using some of the stuff in AVFoundation.
Related
I'm currently working on a small iOS camera app and have a storyboard-related question.
(Sorry for my bad drawing) Here is what I got on my storyboard, I have two view controllers, mainVC and cameraVC, and I added table view cells to mainVC to add a segue to cameraVC. This app is a vertical orientation app, and I want to make this app horizontally only when the user gets to the cameraVC. I'm not planning to make this app rotatable, hence this app only supports the vertical orientation if the user is in MainVC and only supports the horizontal orientation if the user is in CameraVC.
I'd add several more vertical view controllers later on, so I make the app vertical on the storyboard. However, I was not sure how should I design the camera VC on my storyboard.
While the app is running and the user gets to the camera VC, I want the app orientation horizontal (and don't rotate to vertical) and display buttons on the right side, like the image below.
So my question is while all the view controllers set to vertical, should I place buttons on the cameraVC at the bottom like the first image, or is better to place buttons on the right side with assuming the VC rotates when the user gets the camera VC, like the image below?
Sorry for the confusing question.
When designing a view controller in storyboard there is no property for orientation. There are however simulated values that are applied to whole storyboard to be either landscape or portrait.
If you want to simulate these values differently I suggest that you move your camera view controller to another storyboard. I would actually do that regardless of the issue you are facing.
If this doesn't suit you for any reason then you can still simulate your view differently. You can simply select your camera view controller in storyboard and use a Freeform simulated size like on the screenshot below.
I am using UIImagePickerController() to display camera in my swift iOS app and let user take pictures. I would like to show a grid as overlay so I started implementing one as .cameraOverlayView
The problem is that the overlay image or views will spread over the black bars on top and bottom of the camera view. This is undesirable as the grid line will run over the camera button, cancel button etc.
I could not find a method to access the frame of the camera preview window to constraint the overlay just to that. What am I missing?
Actually, this may be a little annoy, there is no way to get the sizes of those bars or the camera preview area, and you can't achieve the subviews of UIImagePickerController and so you can't add constraints for that.
But, you can use the fact that the preview camera area aspect ratio is known as 4/3 always and the overlay width should be the width of the screen and the height should be the (widthScreen / 3) * 4
another way is to set imagePicker.showsCameraControls = false and build custom controls with the overlay on fullScreen.
(use the imagePicker.cameraViewTransform in order to set the camera preview area frame full screen).
I have have create 2 separate view controller for create functionality same as iPhone camera screen with all defaults filters.
Functionality working as per my requirements.
Now I have issue with view animation. How can I achieve same effect while user press on filter icon (left corner) in default camera and full camera screen after selecting any filter.
Look at below screen for more.
Thanks!
You can use a UIView for your filter options instead of UIViewController. Then you can animate whatever you want on the view.
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/#//apple_ref/doc/uid/TP40006816-CH3-SW108
Is there any class in iOS like Android 's gallery class can handle thumbnails in a bar?
a little like iPad's camera roll, there is a thumbnail bar in the bottom of the photo grid view
thank you!
If there is none, I know maybe can use slide bar or scroll view in a UIview to implement what I want.
Can anybody can tell more about how to use scrollview or slider to implement this?
Further more, I haven't think clear is: how do the thumbnails and the big image view delegate to each other?
Thank you very much.
this is a great example of what you are looking for thumbnailpickerview
or you can use iCarousel library to create scrolling thumbnails as well. here is the link iCarousel
I know the camera is 3:4 so there will be a black gap at the bottom.
Now I create a custom cameraOverlayView which has a NavigationBar at the top. So is that possible move the camera view lower that can fill the rest of the screen?