How do I switch between views like home screen - iphone

How do I switch between multiple UIView's using one UIViewController just like the iPhone home screen. If you need clarification please ask, don't thumbs down please.

use a UIScrollView...this sample code from apple does what you want to do

Related

UIImagePickerController pushed on my own UINavigationalController?

I'm trying to take the UIImagePickerController set to UIImagePickerControllerSourceTypeCamera (ie when it allows the user to take a picture) and push it on my own UINavigationalController but it doesn't work (can't push a UINavigationalController onto another UINavigationalController).
I'm wondering, is there anyway to make a custom version of this camera module, much like you can do with the UIImagePickerControllerSourceTypePhotoLibrary UIImagePickerController using ALAssets? I'd just like to not have to pop up the camera as a modal view and would like to push it on my own UINavigationalController.
You can custom camera using AVFoundation.
Refer Sample AVCam for how to use AVFoundation for it.
Your main issue is that the UIImagePickerController is itself a UINavigationController, so pushing that onto a navigation controller is going to have problems (as you've already found)
As Prince has mentioned, your best bet is to use the AVFoundation to create your own. The downside is you'll (by default) lose the nice features of the camera app such as touch to focus, pinch to zoom etc. but these can all be added yourself.
Check out this tutorial which gives you a nice explanation on how to use the AVFoundation library for this, and also shows you how to add things like an overlay to the camera screen. Then you can easily find on google/stackoverflow how to add things like tap to focus :)

iOS iPhone Add label and text field below tab control

I'm a beginner with iOS apps, and I inherited an app I need to make some changes to.
The main view of the app is a tab view, and we'd like to add below the tab view a box with some labels (and text). The labels shouldn't change as the tabs change.
How do I do this?
I noticed something called a SplitView, but I wasn't sure how to use it, and if it's relevant for my need.
I hope that my needs are clear enough. If anyone could make recommendations as to how to do it/point me in the direction of a tutorial, I'd be very appreciate.
Thanks in advance!
The UISplitView is only for iPads. It will not work on the iPhone as far as I know. How are you creating your UITabBar. If you do it programatically you might be able to create it like something like this:
Pseudo Code
UITabBarController *mySpecialController = [[UITabBarController alloc] initWithFrame:CGRectMake('put in coordinates here')];

How do I show a small option view on clicking bar button item?

I have a requirement to pop up a small option-view on clicking bar button item, similar to this image.
How can I achieve this? Any tutorial or link is highly appreciated.
I'm not sure this is available on iPhone but I know that on iPad UIPopoverController it looks so.
Apple Documentation
You can find source code here to create PopoverController on iPhone !
You need to create an UIView and set for backgound you image. In this new view you can add UIButtons to let the user to select an option.

webOS style view switching on iPhone app

I have been working with a iPhone app that I would like to have switch views like the Palm Pre does for multitasking. I know the usual way of switching views by using the black bar at the bottom of the app but the app I am working on does not lend itself to having a big black bar in the way (see attached picture #1).
I guess my question is, how do I shrink the current view (Current Location window) and show other views on the sides? (see attached picture #2) Then be able to swipe left and right to view other views. I have no idea how to do this and would be eternally grateful if someone could help me out with this.
http://www.threepixeldrift.com/images/deep-storage/webOScardapp1.jpg
http://www.threepixeldrift.com/images/deep-storage/webOScardapp2.jpg
The architecture should be similar to that of NavigationController: you have a number of ViewControllers each responsible for one card in your app. Then you have a 'super-controller' which controls these ViewControllers, by adding and removing their controlled views from the superview when necessary.
You'll need to use CoreAnimation and write the animations yourself.
i would use a UIScrollView and each card can be a small view that is shown by setting the contentoff set.

Safari-style UIPopoverController from Toolbar

I'm creating an iPad application which needs a UIPopoverController like this one (I mean, with buttons):
I tried using a UIViewController but it gives me an enormous popup with a white background.
Can anyone explain me how to make one? I cannot find any documentation or example code. Thanks.
You need -[UIActionSheet showFromBarButtonItem:animated:] instead of a UIPopoverController.