Archive for Featured

Implementing UITableView Sections from an NSArray of NSDictionary Objects

December 10th, 2010 Posted by: - posted under:Featured » Tutorials - 44 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

    Making Smarter Table View Cells

    November 18th, 2010 Posted by: - posted under:Featured » Snippets - 11 Comments
    Microsoft_Surface_Icons_by_Jrdn88

    Table Views are one of the most common things within iPhone Applications. The standard UITableViewCells that are provided by Apple are nice but have always had a HUGE flaw in my mind. When you apply some text to the textLabel or detailTextLabel of a UITableViewCell the length of the text is not considered at all. If the text is longer than a single line you need to set the numberOfLines property to be enough so that your content can be showed. Moreover, you also need to compute the new total height of the cell to supply for the height delegate method.

      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

        Adding a UIPopover to UISlider

        October 29th, 2010 Posted by: - posted under:Featured » Snippets - 6 Comments
        slider_cupcakes

        If you have an iPad you have probably used iBooks, Apple’s eBook application that gives users access to the iBooks store. In this application you can navigate through books in a number of ways. Today we are going to focus on the scroll bar at the bottom of a book that a user can utilize to skip to any given page within the book. This control involves a customized UISlider and a UIPopoverView that drags along with the slider as the value changes. Today we will be making a UISlider subclass that will duplicate this functionality.

          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