How do I add a tab bar controller to a navigation-controller-based application? - iphone

I am beginning iPhone application developer, and so I'm not sure how to start the creation of a navigation-controller-based application which uses a tab bar controller in part of it. Do you have suggestions for where to start with this?

These links are a good place to start:
Howto articles for iPhone
development, Objective C
Where
can I find beginner iPhone
tutorials?
Best Book or Article
to learn iphone development
Getting started with Objective-C and
the iPhone SDK
There's a lot out there, it's a little overwhelming at first. One way to get started is to pick a book and go through all the examples.

The Book "Beginning iPhone Development" is pretty good for GUI-Stuff. You could buy it.
But here's a online tutorial:
http://21gingerman.wordpress.com/2009/04/06/tutorial-and-sample-code-for-iphone-app-with-tab-bar-and-nav-bar/

Short answer: You don't!
But you can add a UINavigationController to a UITabBar.

Related

iphone utility application tutorial

I'm very new to iPhone development. I want to create a utility application much like the weather app (enter zip codes for cities to track the weather). The weather app allows users to scroll through their favorite places. There's a flip side where you can manage your selections. I am looking for a tutorial on how to create a similar type app. Can anyone point me to a good tutorial for utility iphone apps please? I've been googling and can't find what I'm looking for. Thanks in advance.
How about this? I found it by googling "iphone utility application tutorial". You should do that next time. :)

How to choose between a window , view or a navigation based application while developing for the iphone?

I am a complete newbie(as is already evident) and I can't just figure out when to choose what. I have been through countless googling operations but found no help on the said question, hence had to ask here. It would be great if any of you could explain or even point me to some online resource which does it. Thanks again for your time.
It depends what your app needs. I've made an app which is a series of questions in a survey. For that I used a navigation based app.
However I'm now working on a complicated app which uses a series of navigation controllers within a UITabBarController. So for that I chose to start a window based application because there was going to be a lot of custom programming involved and that was the "cleanest slate" available.
Think about what you need your app to do, and remember the different projects you can start are all basically the same and you can always change them to suit your needs, its just what they all start with included thats different.
I would always recommend to start with Window based application template.
From a window based iPhone app, you can make any kind of iPhone application.
To learn:
I would recommend iPhone Programming: The Big Nerd Ranch Guide
Get the Kindle version for your Mac - Kindle for Mac
alt text http://img408.imageshack.us/img408/3245/bnr.th.jpg

How To Make Multi-view Apps?

I learn x-code first time. X-code is very complicated!
Would you tell me how to make multi-view apps?
(Step by step)
I created a step by step guideline to create a multiview application here: Multiview iPhone.pdf
Michael Tuszynski's vimeo tutorial (http://vimeo.com/8930397) is helpful but has some flaws (like creating view instances whenever switching)
apple does an excellent job with their documentation. There is a TON of reference material that answers your question. they provide step by step guides for building apps with multiple views:
http://developer.apple.com/iphone/library/navigation/index.html?section=Resource+Types&topic=Getting+Started
Personally I don't like Apple's documentation because it almost seems to assume that you already code for cocoa on os x.
The easiest way to create a multi-view app is to start a new Tab Bar Controller based application using the template, then drag however many View Controllers you want onto the tab bar controller icon. You can set set the icons and titles on their navigation items and just design and code the view controllers just like you would if each view controller were the only one, except that you probably want to connect them somehow to some shared resource.
Check out the book Beginning iPhone 3 Development as it has excellent step-by-step tutorials on how to do several kinds of multi-view applications. It's well worth the money especially if you get it from a discount book store online or something.
Apress Beginning iPhone 3 Development Exploring the iPhone SDK Jul.2009, By Dave and Jeff. They have given a wonderful tutorial for many types of applications including multiview apps

iPhone (Xcode) interface builder resources

I am looking for resources (especially video) to show how to use Xcode's interface builder properly for iPhone development. For some reason it just doesn't click how everything fits together and how this should be used properly.
Thanks
Stephen
Aside from the example apps and videos on Apple's iPhone Dev Center, Pragmatic Programmers have a good book and some decent videos as well.
Another site is iPhone Programming Tutorial. It's free, but I am considering buying the videos and book mentioned by Abie.
Edit: Decided to look through my history and found this dead link.

Interface Builder for iPhone tutorial

Anyone know of some tutorial material for how to use Interface Builder for iPhone development? I can find sample projects and stuff and that's extremely helpful, but they do not reveal how things where setup in Interface Builder.
The Pragmatic Programmers have some screencasts on building an iphone application. I haven't watched those, but I have watched some of their other videos and they were pretty good.
They've also got a free getting started with Xcode and Interface Builder episode, which may be what your looking for.
You can actually get a lot out of these screen-casts which are free as of now:
http://www.cocoacast.com/?q=blog/1
Note that they are very 'connected' to the Aaron Hillegass book on Mac programming (which is also a great resource). Some of them show him using IB (but of course not all). The book is more focused on Mac then iPhone, but if you're just trying to get going it's a great point of departure. I'm working on my first iPhone project and had never programmed with Objective C, XCode IDE and Interface Builder. I read the first 200 pages and used Apple's docs after that. Now it's been several months and I found the above screen-cast and wished I had that getting started! Good luck
The Pragmatic Programmers book iPhone SDK Development includes some Interface Builder walkthroughs.