content top

iOS Code: TweetBot like AlertPanels

iOS Code: TweetBot like AlertPanels

TweetBot is sexy, no one can deny it. One of the coolest aspect of TweetBot is the unobtrusive panels that show what is happening on the app. Some apps like Reeder have resorted to HUDs. The problem with HUDs are that, they are shown on a different “z-index” and human eye has to shift the focus to read what’s on it. For the same reason, HUDs feel a bit disconnected from the UI which could be why on both iOS and Mac, Apple...

Read More

Objective-C Singleton Template for XCode 4

Objective-C Singleton Template for XCode 4

Update:Nov 7th 2011: Get the latest ARC compatible template from the Attachments section With XCode 4, Apple has made some changes to the template subsystem as such none of the old templates that worked on XCode 3 will work automatically. After spending a couple of hours, I managed to figure out the differences and fortunately, the new template subsystem is more cleaner than XCode 3. The Singleton template I created last year is now...

Read More

iOS Code: Block based performSelector

In the previous post we added block based methods to UIAlertView and UIActionSheet. I’ve extended the same code with Category addition for NSObject that allows you to perform a block of code using a custom method called performBlock which works similar to performSelector. [self performBlock:^ { NSLog(@"hi there!"); } ]; [self performBlock:^ { ...

Read More

iOS Code: Block Based UIAlertView and UIActionSheet

Delegates are very useful at times but can be very hard to maintain at other times. With iOS 4, Apple introduced a functional programming aspect to it’s object oriented language, Objective C. (Prior to iOS 4, you could technically use blocks using the plausible blocks toolchain.) In this piece of open source code, we will explore how blocks can really simplify your code by avoiding un-necessary callback delegates. If you have done iOS...

Read More

iOS Tip: Display Names in iPhone Display Order

iOS Tip: Display Names in iPhone Display Order

If you have noticed the contacts app on your iPhone/iPad, it displays the contacts based on your preference of  sort order and display order in Settings.   Contacts app on iPhone displays your contacts based on this order   Fortunately, there is a quick and easy snippet to get this information and use it on your app. The AddressBook framework provides a method called ABPersonGetSortOrdering() to read this info. I use this code...

Read More

Introducing MKStoreKit – Version 3

Introducing MKStoreKit – Version 3

Update 4: (8th July 2011) MKStoreKit 4.0, an updated version of the one presented here is available. Please check it out and use 4.0 instead of this. Around last year this time, I wrote a singleton class, MKStoreKit, and a blog post, wrapping Apple’s StoreKit framework and it has been quite popular. From the email responses I receive, I could say, it’s been in use in more than thousands of apps on the AppStore. It has been very...

Read More
Page 5 of 9« First (1)...34567...Last »
content top