Return to   |   Check out   |   How to Post Snippets  

Not registered? Thats okay! You can Submit a Snippet without being a member of this site!

Auto-increment Build version number

Here is a nice way to increment the build number for your app. Every time you build your project this will add a number to CFBundleVersion. This also adds the build time and date to your info.plist. In order for this to work, you need to add a new entry to your plist called CFBuildDate, […]

I’ve found myself needing to get the time and date (formatted) quickly, so I’ve come up with this simple solution. Of course, you can take this to the next level and get really creative with it using a … that’s right, Preprocessor Macro!

Showing Local Notifications

Here is a fun way to show local notifications. The first showLocalNotificationWithTitle: andAlertAction: will show a notification to the user via the banner as well as place the message in the Notification Center. The second method application: didReceiveLocalNotification: demonstrates how to direct the user based on the action of the notification. For example, if you […]

Here is an easy way to use a sequence of images as a single animated UIImage. The concept behind this is to add your images in sequential order and return an animated image. This is has less math involved than actually using CoreAnimation and is only available in iOS 5.0 and beyond, you will need […]

These handy macros allow you to easily check the system version in the form a string. You can use one of the following macros to check what version of iOS the user is running and based on the value provide a system-specific feature. For example, the Twitter framework that is available as of iOS 5.0.

© Copyright 2011 Wright's Computer Services.   All rights reserved Suffusion theme by Sayontan Sinha