Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts
Wednesday, June 8, 2011
Thursday, May 5, 2011
Creating a New Navigation-Based Application
Open Up Xcode

You will be doing all of your development in Xcode. Then close the Welcome window (if it shows up)
Start a new iPhone OS Project
Click Xcode > New Project and a window should pop up like this:

Make sure Application is selected under iPhone OS and then select Navigation-Based Application. Click Choose… It will ask you to name your project. Type in “Hello World” and let’s get started.
You will be doing all of your development in Xcode. Then close the Welcome window (if it shows up)
Start a new iPhone OS Project
Click Xcode > New Project and a window should pop up like this:
Make sure Application is selected under iPhone OS and then select Navigation-Based Application. Click Choose… It will ask you to name your project. Type in “Hello World” and let’s get started.
iPhone Programming Tutorial – UITableView Hello World
In this tutorial I will walk to you through creating a simple “Hello World” application using a UITableView for the iPhone. There are many ways that a Hello World program could be made on the iPhone, I am going to show you the simplest. This tutorial assumes you have a basic understanding of Objective-C. Apple has provided a very simple and straight forward tutorial on Objective-C. You can find it here.
You will learn how to:
You will learn how to:
- Create a New Navigation-Based Application
- Learn About the Default Files
- Update the UITableView Cells to Display “Hello World” Text
Labels:
hello world,
iPad,
iPhone,
ipod,
tutorial,
UITableViewController
Debugging Tutorial – Automating Your Tests With A UIRecorder Instrument
If you have ever experienced a bug in your application that took many steps to reproduce, then this tutorial is for you. By nature, testing and debugging are very tedious processes. This is especially the case for the iPhone.
Say you have an app that drills down 5-levels deep to some other view. Now let’s say that you have a bug on that view 5 levels deep. Your normal method of debugging is:
1. Open up the app you wish to test/debug
2. Launch it in the simulator
3. Open Instruments – This is located in /Developer/Applications/Instruments (just do a spotlight search for it)

4. Select UIRecorder and click Choose - You should now see a window like this

5. Now, we need to attach this tool to the iPhone Simulator process. Click the drop-down above
Default Target -> Attach to Process -> iPhone Simulator.

6. Now click Drive & Record and do all of the steps in the simulator to test your app. At this point, the UI Recorder is recording your every move. When you have finished press the Stop button. Note: After you have recorded your actions, don’t move the simulator as it will mess up the entire process.
7. Modify your code…
8. Press the Drive & Record button and watch the magic happen. The test is automatically done for you. You should see your mouse move over to the simulator and the system mimicking every action that you did before.
That’s it! I know this isn’t a super long tutorial (or even a coding tutorial), but the UI Recorder has sped my test time up tremendously. Give it a shot and let me know what you think. Here is a short video of me going through all of the steps.
video tutorial
Say you have an app that drills down 5-levels deep to some other view. Now let’s say that you have a bug on that view 5 levels deep. Your normal method of debugging is:
- Run the app
- Tap view 1
- Tap view 2
- Tap view 3
- Tap view 4
- Tap view 5
- (Crash)
- Change some code
- Repeat
1. Open up the app you wish to test/debug
2. Launch it in the simulator
3. Open Instruments – This is located in /Developer/Applications/Instruments (just do a spotlight search for it)
4. Select UIRecorder and click Choose - You should now see a window like this
5. Now, we need to attach this tool to the iPhone Simulator process. Click the drop-down above
Default Target -> Attach to Process -> iPhone Simulator.
6. Now click Drive & Record and do all of the steps in the simulator to test your app. At this point, the UI Recorder is recording your every move. When you have finished press the Stop button. Note: After you have recorded your actions, don’t move the simulator as it will mess up the entire process.
7. Modify your code…
8. Press the Drive & Record button and watch the magic happen. The test is automatically done for you. You should see your mouse move over to the simulator and the system mimicking every action that you did before.
That’s it! I know this isn’t a super long tutorial (or even a coding tutorial), but the UI Recorder has sped my test time up tremendously. Give it a shot and let me know what you think. Here is a short video of me going through all of the steps.
video tutorial
Subscribe to:
Posts (Atom)