With the introduction of ARC, memory management became easier. However, even though you don’t have to worry about when to retain and release, there are still a few rules you need to know in order to avoid memory problems. In Continue reading Avoid strong reference cycles
When you’re building an app you usually need some values to remain the same for the whole runtime of the app. Instead of using those values everywhere inside your app it is better to define a constant and use the constant instead. Continue reading Constants in Objective C
You might have noticed that when you insert an IBOutlet directly from Interface Builder you can select whether to have it as a weak or strong property. After a little search in the Apple developer’s library I have found when Continue reading Should IBOutlets be weak or strong?
When you declare a NSString property it is best to use copy instead of strong. In fact this is true for any immutable class that conforms to the NSCopying protocol like NSNumber, NSArray, NSSet and others. All these classes I Continue reading Use copy for NSString properties