iPhone Development

Just another iPhone Blog

Efficient Memory Handling in UIViewController-Part 2

In the last post we discussed about the skeleton of a typical UIViewController which handles memory warning efficiently.

In this post, I will provide you Xcode Templates of a UIViewController, which takes care of all these things we have discussed earlier here, thus making our Lives easier.

Following steps explain How to add these templates:

  • Navigate to Developer->Platforms->iPhoneOS.platform->Developer->Library->Xcode->File Templates->Cocoa Touch Class Folder
  • KEEP A BACKUP OF "UIViewController subclass" folder
  • Download the zip filehere
  • Unzip the file and replace the “UIViewController subclass” folder with the new one
  •  

    Please note that these templates works for UIViewControllers created with File->New File option

    Thats it, there should be no more hassles with Memory now!!

    Happy Coding!! 🙂

    Advertisements

    2 responses to “Efficient Memory Handling in UIViewController-Part 2

    1. Pingback: Why iOS Apps Crash? | DevMaster.vn

    2. Pingback: [iOS] Why iOS Apps Crash | SETA Geeks

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: