taras kalapun

Flickr page →

How I RestKit

In this short post I’ll show how I use RestKit library in my iOS projects.

First of all, I want to say that for managing all my libraries in iOS projects I use CocoaPods (kind of Gemfile bundler, but for iOS), which I strongly recommend using.

So, RestKit… open up your Podfile and add

1
2
3
4
5
dependency 'RestKit/Network'
dependency 'RestKit/UI'
dependency 'RestKit/ObjectMapping'
dependency 'RestKit/ObjectMapping/CoreData'
dependency 'RestKit/ObjectMapping/JSON'

I also use Injective dependency a lot, so I add dependency 'Injective' to my Podfile

Capistrano Helpers

While working on new rails project, I’ve made few lazy helpers for Capistrano cap command that I want to share. All of them are in my deploy.rb file.

Fonts in iOS Project

Small piece of code that will show you available font names for using in you iOS project

1
2
3
4
5
NSArray *fonts = [UIFont familyNames];
for (NSString *fName in fonts) {
    NSLog(@"---> %@ :", fName);
    NSLog(@"\n%@", [UIFont fontNamesForFamilyName:fName]);
}

Start Reading Details

I wonder when people will start reading some details before asking a lot of questions? Like the questions “Let’s meet today in center (Kiev)?” or “Oh, so where do you live now?”. Come on, people.