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

Mac App: iKLOC

Mac App: iKLOC

This is my second mac app, iKLOC (iTunes link) is available on Mac App Store! This time it was just a 4 day waiting time! What is iKLOC? iKLOC is a quick little tool count the number of lines of source code in your iOS or Mac app.  Just like my other app, iConify, the speciality of iKLOC is that, it just works. Launch the app, open your .XCodeProj file and boom, it counts your lines. How is it different from traditional command line...

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!"); } ]; So using a block, you can do a performSelector...

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
Page 5 of 19« First (1)...34567...10...Last »
content top