Tag: objective-c

How to add a ViewDeck into a StoryBoard scene

Posted by – April 3, 2012

ViewDeck (https://github.com/Inferis/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:
More

Share

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.
More

Share

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.
More

Share

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:

Contact.h

1
2
3
4
5
6
7
8
9
@interface Contact : NSObject {
    NSString *name;
    NSString *address;
}

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

@end

More

Share

What I miss in Xcode when I write iPhone applications

Posted by – February 24, 2009

One of the missing features in Xcode is the hability to add code sense for protocol methods that can be implemented by a class, for example a class that extends UITableViewController, these classes may have a custom implementation of methods found on both UITableViewDelegate or UITableViewDatasource protocols, the signature of these methods isn’t so easy to memorize and some code completion at this point would help a lot.

More

Share