143x Filetype PDF File size 1.72 MB Source: riptutorial.com
Objective-C Language #objective-c Table of Contents About 1 Chapter 1: Getting started with Objective-C Language 2 Versions 2 Examples 2 Hello World 2 Compiling the program 3 Chapter 2: Basic Data Types 4 Syntax 4 Examples 4 BOOL 4 id 4 SEL 5 IMP (implementation pointer) 6 NSInteger and NSUInteger 7 Chapter 3: Blocks 9 Syntax 9 Remarks 9 Examples 9 Blocks as Method Parameters 9 Defining and Assigning 10 Blocks as Properties 10 Block Typedefs 10 Blocks as local variables 11 Chapter 4: BOOL / bool / Boolean / NSCFBoolean 12 Examples 12 BOOL/Boolean/bool/NSCFBoolean 12 BOOL VS Boolean 12 Chapter 5: Categories 14 Syntax 14 Remarks 14 Examples 14 Simple Category 14 Declaring a class method 14 Adding a property with a category 15 Conforming to protocol 15 Create a Category on XCode 16 Chapter 6: Classes and Objects 19 Syntax 19 Examples 19 Creating classes with initialization values 19 Singleton Class 19 The "instancetype" return type 21 Specifying Generics 21 Difference between allocation and initialization 22 Chapter 7: Continue and Break! 23 Examples 23 Continue and Break Statement 23 Chapter 8: Declare class method and instance method 25 Introduction 25 Syntax 25 Examples 25 How to declare class method and instance method. 25 Chapter 9: Enums 27 Syntax 27 Examples 27 Defining an enum 27 typedef enum declaration in Objective-C 27 Converting C++ std::vector to an Objective-C Array 28 Chapter 10: Error Handling 30 Syntax 30 Examples 30 Asserting 30 Error & Exception handling with try catch block 30 Chapter 11: Fast Enumeration 32 Examples 32 Fast enumeration of an NSArray 32 Fast enumeration of an NSArray with index. 32 Chapter 12: Format-Specifiers 33 Introduction 33 Syntax 33 Remarks 33 Examples 34 Integer Example - %i 34 Chapter 13: Grand Central Dispatch 35 Introduction 35 Examples 35 What is Grand central dispatch. 35 Chapter 14: Inheritance 36 Syntax 36 Examples 36 Car is inherited from Vehicle 36 Chapter 15: Key Value Coding / Key Value Observing 38 Examples 38 Most Common Real Life Key Value Coding Example 38 Key Value Observing 38 Querying KVC Data 40 Collection Operators 40 Chapter 16: Logging 44 Syntax 44 Remarks 44 Examples 44 Logging 44 NSLog vs printf 44
no reviews yet
Please Login to review.