Objective-C Literals

Objective-C Literals

A "literal" refers to any value which can be written out directly in source code. For example, "hello" is a character literal and 32 is a integer literal. In the past Objective-C hasn't had support for defining literals, but as of Xcode 4.5 this is supported. The new syntax is also backwards compatible with older versions of iOS. Let's look at some NSNumber Objects.

Read More