Archive for Tutorials

Creating Static Libraries For iOS

April 7th, 2011 Posted by: - posted under:Tutorials - 49 Comments

Today I’m going to show you how to make a static library for iOS. We will make a simple library and use it in a separate project.
What’s a static library
Here is what has to say:
In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and …

    READ MORE

    Facebook SDK – Posting to User News Feed

    March 28th, 2011 Posted by: - posted under:Tutorials - 72 Comments
    What the Posts will look like!

    Hello, I’m () and I recently finished working on . Many applications use Facebook for posting content from their respective applications, there could be infinite items that a developer would like to post to users feeds whilst using their applications but today we will be focusing on posting a link to a users feed.
    In order to get started using the Facebook SDK & API’s you will need to download the latest copy …

      READ MORE

      Using Git Versioning inside your XCode Project

      March 23rd, 2011 Posted by: - posted under:Featured » Tutorials - 13 Comments

      This tutorial will show you how to automatically fill in CFBundleVersion and CFBundleShortVersionString, when using Git.
      This has been tested in Xcode 3.2.5 (Updates for Xcode 4 at the bottom)
      Git Setup
      First off you need a project that is checked into git, and is also tagged with an initial version number.
      If you already have git setup for your project, skip down to XCode Setup
      To locally setup up git, without a remote repository, after installing git, issue the following commands
      cd into your project …

        READ MORE

        An Introduction to Categories (Part 2 of 2)

        February 24th, 2011 Posted by: - posted under:Featured » Tutorials - 3 Comments

        Using Categories to enhance models, and get rid of those pesky compiler warnings
        Overview
        When using Core Data, our model classes are always generated. What happens if we wanted to add a couple utility functions to one of these generated classes? Yep, they would be discarded the next time we auto-generated our model classes. As we discussed in our previous categories post (icodeblog.com), adding a category on one of these generated classes would enable us to add those utility …

          READ MORE

          Implementing UITableView Sections from an NSArray of NSDictionary Objects

          December 10th, 2010 Posted by: - posted under:Featured » Tutorials - 41 Comments
          Screen shot 2010-12-10 at 3.02.09 PM

          If you’re working with a remote Web Service, your apps are probably displaying TableViews of objects. As soon as your dataset grows beyond 20 or 30 objects, it’s time to implement sections in your Table View. I’m going to show you how you can do this without too much trouble. In this example, we’ll use an array of dictionary objects (Books) to construct a single ‘sections’ dictionary that will be the basis for our TableView datasource.
          Before we …

            READ MORE

            An Introduction to Categories (Part 1 of 2)

            November 4th, 2010 Posted by: - posted under:Featured » Tutorials - 11 Comments
            pie

            Overview
            Have you ever wished that you could add one, or a couple, additional functions to an Objective-C core class?
            Well Apple has thought of this, and they provide a way without extended the class! The way to do this is called a category. A category is a way to enhance an existing class, by adding additional functions to it. The difference between this and extending a class is that when you extend a class, you can add additional functions, as …

              READ MORE

              Working with UIGestureRecognizers

              October 14th, 2010 Posted by: - posted under:Featured » Tutorials - 48 Comments
              apple-multi-touch-gesture-language

              Hey iCoders! Today we are going to make a fun project that takes advantage of UIGestureRecognizers which were introduced in iOS 3.0, way back when it was called iPhone OS. UIGestureRecognizer is an abstract class that several concrete classes extend Eg. UITapGestureRecognizer, UIPinchGestureRecognizer. Today we are going to be building a simple photo board application. You will be able to add photos from your board, move, rotate and zoom them in and out around the board. We will also build in some simple physics to give a sense of the photos being thrown around the board. Here is a short video of what our final product will look like.

                READ MORE

                Cloning UIImagePickerController using the Assets Library Framework

                October 7th, 2010 Posted by: - posted under:Featured » Tutorials - 49 Comments
                PostPic

                Hello iCoders. This is a follow up post to my initial post on the Assets Library Framework and Blocks. We came across an interesting problem when working on the application for . They have had an since the very early days of the app store, and one of our biggest struggles has been creating an interface to allow …

                  READ MORE

                  Adding Local Weather Conditions To Your App (Part 2/2: Accessing Google’s XML Weather API)

                  September 29th, 2010 Posted by: - posted under:Tutorials - 40 Comments
                  Screen shot 2010-09-29 at 12.41.17 PM


                  In this Part 2 of ‘Adding Local Weather Conditions To Your App’, I’ll show you how to quickly add current temp, conditions, and today’s high / low temperature to your app.
                  If you’re lucky enough to already have the user’s zipcode or city and state, this should go very quickly for you. Otherwise, check out Part 1 (Integrating CoreLocation).
                  Let’s get started.
                  There are a handful of solid XML Weather APIs out there. The best one I’ve seen so …

                    READ MORE

                    Dealing with the Twitter Oauth-Apocalypse

                    September 16th, 2010 Posted by: - posted under:Tutorials - 124 Comments
                    twitterapocolypse

                    As many of you may have seen in recent weeks, Twitter changed its access policies and now that access Twitter user accounts. This is a large change from how many iPhone developers having been incorporating Twitter into their applications. What is OAuth exactly? How can iPhone developers get their apps up to date so they don’t break their Twitter incorporation? Well we have all the info you need to know about …

                      READ MORE