Archive for Tutorials

iPhone Programming Tutorial – Using A TabBarView To Switch Between Views

October 13th, 2008 Posted by: - posted under:Tutorials - 50 Comments

In this tutorial I will show you how to develop a UITabBarController which contains a custom UIView from one of the tabs and a UINavigationController with a UITableView dictated byUISegmentControl in the second tab.
This tutorial was contributed by the user . You can check out his website at
If you would like to contribute a tutorial to iCodeBlog.com, contact me
The final product of this tutorial should look something like this:

Setting up the User …

    READ MORE

    iPhone Programming Tutorial – Saving/Retrieving Data Using NSUserDefaults

    October 3rd, 2008 Posted by: - posted under:Tutorials - 164 Comments

    In this tutorial, I will be showing you how you can save and retrieve different types of data using the NSUserDefaults object. Saving this way is great for when you want to save small amounts of data such as High Scores, Login Information, and program state.
    Saving to the NSUserDefaults is great because it does not require any special database knowledge. So if you don’t want/have an SQLite3 database for your app, this would be the way to go.
    In …

      READ MORE

      iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 4

      September 22nd, 2008 Posted by: - posted under:Tutorials - 116 Comments

      This is the final installment of our 4 part series of creating a Todo list for the iPhone. In this tutorial, I will detail how to add and delete new todo objects from the SQLite database. Make sure that you have completed the following tutorials before you begin this one:

      iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 1

        READ MORE

        iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 3

        September 10th, 2008 Posted by: - posted under:Tutorials - 68 Comments

        This is part 3 in our multipart series of creating a todo list for the iPhone. For this, you must have completed the following tutorials.

        iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 1
        iPhone Programming Tutorial – Creating a ToDo List Using SQLite …

          READ MORE

          iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 2

          September 2nd, 2008 Posted by: - posted under:Tutorials - 111 Comments

          This tutorial is part 2 in our series of creating a to-do list. I will assume that you have completed the following tutorial and its prequisites.

          iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 1

          I will be using the code produced from that tutorial as a base for this one. When you are finished with this tutorial, your application will look something like this:

          In this section, I will not only teach you how to …

            READ MORE

            iPhone Programming Tutorial – Creating a ToDo List Using SQLite Part 1

            August 19th, 2008 Posted by: - posted under:Tutorials - 237 Comments

            If you have been following my tutorials, you know that we have been working primarily with UITableViews. This is mostly because SO many applications can be developed using this simple control. This final UITableView tutorial will be taking all of the skills learned from previous tutorials, putting them all together, and adding SQLite to create a prioritized To-Do list. I will also be showing you how to add multiple columns to your table cells and we will …

              READ MORE

              iPhone Programming Tutorial – Populating UITableView With An NSArray

              August 8th, 2008 Posted by: - posted under:Tutorials - 330 Comments

              The goal of this tutorial is to show you how to populate a UITableView with data from an array of objects. This will be the building block to display XML data as well as SQL data.
              The theme of this application will be fruit. We will create an array of “fruit” objects that have some additional information besides the name. We will populate a UITableView with the names of the fruits. When the user selects a fruit …

                READ MORE

                iPhone Programming Tutorial – Transitioning Between Views

                August 3rd, 2008 Posted by: - posted under:Tutorials - 211 Comments

                This tutorial will focus on transitioning from one view to another. We will be utilizing Apple’s UINavigationController. I will be using the code from the “Hello World” tutorial that I previously wrote. So if you have not completed it yet, go ahead and do it and come back to this page. (It’s quick I promise). You can view it here.
                In this tutorial you will learn:

                Add A …

                  READ MORE

                  iPhone Programming Tutorial – Connecting Code to An Interface Builder View

                  July 30th, 2008 Posted by: - posted under:Tutorials - 215 Comments

                  Finally, we get to write some real code! In this tutorial, I will show you how to create an interface using Interface Builder and connect it to your code. We will be creating a UITextField, UILabel, and a Button. Now, don’t be intimidated that this tutorial is so long. I have really went into detail explaining everything as I go. You could easily scan over it and get the gist of it. Here’s how the application …

                    READ MORE

                    iPhone Programming Tutorial – Beginner Interface Builder Hello World

                    July 29th, 2008 Posted by: - posted under:Tutorials - 72 Comments

                    digg_url = ‘http://digg.com/apple/iPhone_Programming_Tutorial_Beginner_Interface_Builder’;
                    In my last tutorial UITableView Hello World I said that there are many ways to write a “Hello World” tutorial for the iPhone. Here is one using Interface Builder. Last time, I demonstrated a simple way to populate one cell in a UITableView with some text. Today’s tutorial is even simpler. I will show you how to work with Interface Builder to create a simple layout for you application. In fact, you won’t …

                      READ MORE