How to create similar interface like the Photo application in iPhone? - iphone

How do I start an application which has a similar interface like the Photo application that ships with the iPhone? Specifically an interface with a UITabBarController and UINavigationController both present in the view.

To use both tab and navigation together, you create a tab bar application and change the class of its views from UIViewController to NavigationController. Have a look at this tutorial, it should get you started.

I would check out the Three20 open-source iPhone framework. More specifically their TTPhotoViewController.
github - Three20

Related

Strategy for developing Universal IOS application

I have an iPhone application available in appstore.
Now i would like to develop Universal version of the same app.
The iPad version of the current application will be the same. Just screens will be adapted for iPad size. The behaviour won't be changed due to device type.
My question is below:
In iPhone version, there is a page which displays hotel list.
The controller class is:
HotelListViewController.m
HotelListViewController.h
the xib is: HotelListViewController.xib
Now which is best practice for making same page of iPad:
Option 1:
Just creating HotelListViewControlleriPad.xib
and using same HotelListViewController.m and .h
Option 2:
Creating HotelListViewControlleriPad.xib
creating HotelListViewControlleriPad.m and h
thanks.
You need to go by option 1, as only view differs so you need to have different xib for iPhone and iPad.
If in your controller, there is certain view related stuff then you can handle that stuff conditionally.
You can check this thread also for some interested related discussion - How to develop an universal app for iPhone + iPad without xib files?
Either go for option 1 or use the same xib and view controller class as in iPhone but make the view controller a child view controller of the full screen view controller on iPad (for example using split view controller or a custom container view controller).

Three20 Presenting ViewController on top of Navigation Controller

I am using Three20 framework and trying to presentViewController on top of navigationController. I am not sure how its been done with Three20 framework, any guru's out there who have touched this framework might help me with this?
Thanks.
There is "limited support" for iPad & multiple view controllers on the same screen. I would avoid using the TTNavigator and the view controllers url mapping. you can just push and present your TTViewController classes using the standard self.navigationController work flow
PS, by "limited support" I mean horrible, buggy and useless support.

Navigation based application in IPAD

I could not find any Navigation Based Application template in Xcode. As of now, I am just pushing the viewControllers to the stack and then building the application. I wanted to know how can we create a navigation based application where we can set a RootViewController and add the viewControllers onto it.., So that it would be easy to add the NavigationItems to the navigation bar in every view. Thanks
Here is a tutorial for it: Tutorial
How to add this tempelate: add template
Apple suggest to use split-View based application on iPad, Read below for the iOS project types.
Creating an iOS Application Project
Read the blog post
All about iPad: Resolution, UI Elements, Gestures, UX Guidelines

How-to incorporate a UISegmentedControl inside a UITabBarController?

I used the following tutorial Red Artisan to create a UISegmentedControl which I use to switch between two views: a simple one and a table view.
Everything is fine when I create a new standalone project, but what I really want is to incorporate this functionality in another project with a UITabBarController as the rootController (the segmented control with two views will be inside the second tab).
In the above tutorial the segmented control, navigation and segment controllers are instantiated and configured from within the application delegate.
Any idea how this could be done from a lower level?
Thank you in advance!
Basically, you need to create a UITTabBarController based application (There are LOTs of tutorials on how to do this), and then in the second UIViewController (or a custom subclass), you would create your UISegmentedControl to switch between two pages.
It sounds like you might also be using a UINavigationController as your base controller in the first application, if this is so..you could have a UITabBarController that has two Controllers in it (two tabs), and the second one will be a UINavigationController like how you had it setup in the app delegate.
Also, there are tutorials to do basically this exact thing all over the internet. Try searching for " UINavigationController inside UITabBarController " or similar. One other thing, there is an example of how the "layering" works in the Apple UI documentation for having a UINavigationController be one of the tabs of a UITabBarController (This is a quite common approach for iPhone apps)
Good luck!

iPhone app like Twitter design structure

I'm new to iOS development and am working on this app that has a similar interface to the official Twitter app. However, I'm not sure how to organize the view controllers and the hierarchy, especially for UITabBar and UINavigationBar (which one is the parent controller?).
Can you guys point me to the right direction? I started from a blank window-based application project. A list of view controllers in the order of the hierarchy would be really helpful. Thank you.
Make the TabBar Controller your root controller. Then, in every tab where you need navigation, use Navigation Controller. It will add Navigation Bars, which you can then modify either in IB (where it applies), or programmatically.