The iPhone developer center provides a great library of information of developing applications on iPhone. However, it assumes that the developer has some relative experience in developing applications on Cocoa. For developers like me who have decided to give iPhone development a try for the first time, there is undoubtedly a great hurdle to leap across.
I have put together this simple howto tutorial to illustrate some of the key features which I have picked from books (books on IPhone SDK development are seriously lacking at this point in time) and online materials that exist in bits and pieces all over the Internet. The illustrated features may not be the best solutions for the problems, but I believe they are rather straightforward and easier to align with my thought process (having come from a few years of development in MFC/Visual C++).
The tutorial will show you how to:
- Create an iPhone application from an empty application template.
- Add a 2-tabs tab control view for your main window on your iPhone screen.
- Create a child view for the first tab which contains a Navigation bar (I use it for the title because it looks good), and a Table view.
- Create another child view for the second tab which is basically a form-based view designed through the Interface Builder.
- Load these two child views dynamically from their xib files.
- Generate table cells which contain a label, and a on/off switch or a slider control through coding
- Adding action handlers to the on/off switch controls and slider controls in the dynamically-generated table cells.
- Capturing the changes in the states of the on/off switches and slider controls on the first tab view and display the states on the second tab view (form-based view).
Read the rest of this entry »