Coming from the world of Flash/Actionscript I really like the concept of NSNotifications in iPhone apps. Problem is, keeping track of your notifications can become a pain real quick. That is why I like to create a centralized location to manage all my NSNotifications. More after the jump.
UIScrollView Image Gallery Tutorial
Using a UIScrollView to create a paging application seems to be a question I am frequently asked about. I decided to create this tutorial to show how you can create an image gallery with a UIScrollView. I will show you have to reuse two UIImageViews views to avoid creating a UIImageView for each image in the gallery. Full tutorial and source after the jump.
UITextView resignFirstResponder If isFirstResponder
Sometimes you need to know if a UITextView is activly being edited. Here is a simple snippet to check if a UITextView is the first responder if it is then resign it. This will dismiss the keyboard and cancel editing of the UITextView.
if([myTextView isFirstResponder])[myTextView resignFirstResponder];
To iPhone 4 Or Not iPhone 4
I am probably one of the only iPhone developers who doesn’t own an iPhone. That sounds pretty strange, but I have been using my 1st gen iPod touch pretty much exclusively for development. This puts a damper on things with the release of the iPhone 4 and the new iOS 4. Apple is not supporting the 1st gen iPod touch anymore, which means no upgrade. Now it’s time to buy a new device. The new features of the iPhone 4 (especially the camera) are very enticing but I don’t think I will get it. I am still holding out hope that they will put a decent camera in the iPod touch. So for now unless I win the lottery I think I will have to wait to see what the next gen iPod touches are like before I buy something.
iPhone SDK UIWebView Alert
I found myself needing a quick way to show a simple web page in my apps. I created this custom UIAlertView to do just that. Code after the jump.



