Category: objective-c

How to add a ViewDeck into a StoryBoard scene

Posted by – April 3, 2012

ViewDeck ( is an amazing library that helps you to easily add a Facebook like menu into your application, unfortunelly it has a small issue with storyboards causing to not load the IIViewDeckController code properly.

In order to make use of ViewDeck in a specific scene of my storyboard, I created a blank scene with a empty view, in viewDidLoad method I added the following lines of code:


XML Generation in Objective-C with XMLDocument

Posted by – October 21, 2011

XML generation is one of the most common programming tasks done by several developers around the world, with XML we can easily integrate different platforms, using a data format that is very easy to understand and work with.

Unfortunately iOS API doesn’t provide a built in class that help us with XML generation, so I decided to write my own helper class for this purpose.

XMLDocument is a very simple class, you may not found several features that are very common in XML generation, but with this class I could easily implement what I need to get one of my iOS project done.

Here’s how the class is implemented, any help on improvements will be appreciated.


Unrar4iOS – A port of unrar to iOS platform

Posted by – November 15, 2010

Recently I started a project which must understand the CBR format, for those that doesn’t know, CBR is a comics file format, which consists of several image files archived in RAR archive format.

In order to be able to read CBR archive contents and uncompress them I need to port unrar library to iOS, after some quick research I found an existing work done in this way, it’s pretty old, but gave me some insight about how to start.


Adding Mask to UITextField

Posted by – February 19, 2010

Cocoa Touch is an awesome API, it contains a large set o frameworks that can be used to create fantastic applications for iPhone, iPod Touch and iPad, but if we compare Cocoa Touch with Cocoa API for MacOSX we won’t find some cool features like masking on input controls.


Returning a textual representation of a object in Objective-C

Posted by – February 28, 2009

Today I discovered how objetive-c allows the programmer to generate a textual representation of a object, you can do it by implementing a description method of NSObject protocol.

Please consider the following class interface:


@interface Contact : NSObject {
    NSString *name;
    NSString *address;

@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *address;