The home of Objective-C Tutorials, Resources and Competitions for the iPhone Developer

Use copy for NSString properties

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 mentioned also have a mutable version. You want to use copy because your NSString property can be passed either a NSString or a NSMutableString instance. If you’re being passed a NSMutableString instance then that means the value of your string ...

Read Full Article

Editable UITableViewController

A common use case in iOS is creating a form or an editable list of records directly inside a UITableView. We could send the user to a separate “detail” view controller for editing, but that complicates and slows down the user experience.

Read Full Article

SWTableViewCell – Expose Utility Buttons with an easy-to-use UITableViewCell subclass

An easy-to-use UITableViewCell subclass that implements a swipeable content view which exposes utility buttons (similar to iOS 7 Mail Application)

Read Full Article

Identify Calling Method in iOS

iOS development tutorial Recently I was troubleshooting multithreading issues in an iOS app for IIN. Here is some code that can identify what method and class called a given method. Useful for logging and debugging race conditions.

Read Full Article

Animating UITableView cells

In this quick tutorial I’d like to show you how to add a simple but interesting effect to your UITableView using with just a few lines of code.

Read Full Article

Objective-C Strings: A guide for beginners

The Objective-C class for strings is NSString. Strings are typically created by direct assignment or by calling one of the NSString class methods.

Read Full Article

Quick Tip: Create your own Objective-C Delegate Protocol

To create your own custom delegate protocol, you need to modify the header file (.h) for the selected class to then add the @protocol declaration, a delegate @property, and declare the methods that delegates can implement:

Read Full Article

1 5 6 7 8 9 18

Follow iOS-Blog on twitter

Follow @iOS_Blog