Failed to launch in time

This gallery contains 1 photo.

Make your app startup as fast as possible to be responsive to user actions is vital. Not only that you risk that your app is being killed by the system, you also risk that the user is not willing to accept slow launch times and will immediatly delete your app right after installation. Continue reading

More Galleries | Leave a comment

ibtool failed after xcode 4.3 installation

After installing Xcode 4.3 I found myself with an ibtool saying that the Xcode directory is not set correctly.
As I choose to remove the old installations of Xcode I removed the Developer directory where the ibtool resides too.

This worked for me.
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/

Posted in Tools | Leave a comment

From sqlite to core data – What about transformed values?

If you have read my previous note about how to feed a core data database from sqlite data you might have noticed that the case NSTransformableAttributeType was not covered at all. In the past I have used this type to … Continue reading

More Galleries | Leave a comment

Make #define from core data class property

Convert your @dynamic myPropertyName to #define k_PRE_MyPropertyName @”myPropertyName” and use the define in your code whenever you need use [myClass valueForKey:@"myPropertyName"]. Continue reading

More Galleries | Leave a comment

Get time difference from date as formated string

If you need the difference in time from the current date as a well formated string in the form of (years, month, days, hours) and omit items if they are empty, get
- (NSString *)getTimeDifferenceFromNow:(NSDate *)date Continue reading

More Galleries | 1 Comment

Sort Code Lines

This gallery contains 1 photo.

I’ve come accross a “problem” during core data model generation that variables are in the editor are sorted but in your *.h and *.m files in random order.
As I just felt in love with automator I found that this is the right place to find a solution to that. Continue reading

More Galleries | Leave a comment

Count your lines of code

This gallery contains 1 photo.

After working of hours and days and complains from your wife you need the testimonial that you have worked harder than ever and not played games or surfed the web. Continue reading

More Galleries | Leave a comment

Horizontal Picker

The “horizontal” picker was created having the use within UITableViewCells in mind as well as that sometimes you have rather short list where the user should pick from and its not worth loading a new view to present a picker or another UI element. Continue reading

More Galleries | Leave a comment

From sqlite to core data

Transfering an existing sqlite database into the core data base world is often not an easy going task but if you follow some naming rules in the core database model editor as well as column names in your sqlite database you can use the following code to initialize your entities quite easily. Continue reading

More Galleries | Leave a comment

UITabBar ViewController Sequence

UITabBarDelegate Protocol offers a way to reorganize the sequence of the view controllers in a UITabBar by going to the more navigation controller, push Edit and drag the items on the place you find more appropriate. Here’s how to make it persistent. Continue reading

More Galleries | Leave a comment