background preloader

iOS

Facebook Twitter

25 iOS App Performance Tips & Tricks. Follow these tips to improve your app performance! This is a post by iOS Tutorial Team Member Marcelo Fabri, an iOS developer working at Movile. Check out his personal website or find him on Twitter or on Google+. When developing an iOS app, it’s critical that your app has good performance. Your users expect it, and it will hurt your reviews if your app appears unresponsive or slow. However, due to the limitations of iOS devices this can sometimes be quite hard to get working quite right.

There’s a lot to keep in mind during development, and it’s easy to forget the performance impact of your decisions. That is exactly why I wrote this article! So keep reading to give your future apps a nice boost! Note: Before optimizing any code, make sure there’s a problem to be solved! Table of Contents The tips below are categorized into three different levels – beginner, intermediate and advanced: Beginner These are tips that you’ll always want to implement in any app you develop. Intermediate Advanced Why? The right way to use Collections. In Cocoa and Cocoa Touch, a collection is a Foundation framework class used for storing and managing groups of objects. Its primary role is to store objects in the form of either an array, a dictionary, or a set. These classes ease the task of managing groups of objects.

Foundation collections are efficient and used extensively by OS X and iOS. Collections share a number of characteristics. Most collections hold only objects and have both a mutable and an immutable variant. All collections share a number of common tasks, which include: Enumerating the objects in a collectionDetermining whether an object is in a collectionAccessing individual elements in a collection Mutable collections also allow some additional tasks: Adding objects to a collectionRemoving objects from a collection While collections share many characteristics, there are also important differences.

Accessing Indexes and Easily Enumerating Elements: Arrays Associating Data with Arbitrary Keys: Dictionaries. iPhone Development 101. NimbusKit - The iOS framework that grows only as fast as its documentation. How To Customize UITabBar on iOS 5 - Felipe Cypriano. Building the new version of the app Blocos de Rua I was challenged to customize the UITabBar so it meets what the designer wants. In iOS 5 this is pretty easy to do but I haven’t figured out the proper way to do it from the beginning, this post is my findings on how to do it properly by correctly using the new iOS 5 APIs to customize appearance.

The final look: Keep reading to see the code. The appearance APIs in iOS 5 are great. They reduce lots of custom drawRect: that used to be necessary to customize the default UIKit components. The first time I tried to customized the tab bar I had some problems with images been offset upwards because I was using the wrong methods. Customize the UITabBar is a peace of cake when you understand how the APIs should be used, take a look: From inside out, the UITabBar First - usually in your app delegate - set the image for the entire tab bar’s background, which represents the “normal” state of all tabs.

Then configure the selected state of a tab. CocoaObjects. How does the observer pattern work in IOS development? | Nancy T. Smith.