Objective - C Basics Flashcards
interpolate syntax
NSLog(@”%@ %@”, @”Ari”,@”Ingber”);
creating an integer variable
NSInteger b = 2;
which has methods primitives or objects
objects only
4 basic primatives
NSInteger
NSUInteger
CGFloat
BOOL
comment styles
/* */ // //
what to look for when confronted with incompatible integer to pointer conversion
extraneous *
NSInteger Format Specifier
%li
NSUInteger Format Specifier
%lu
CGFloat Format Specifier
%f or %.nf, where n is the number of decimal places to display
BOOL Format Specifier
%d
syntax for calling a method and providing argument
ReturnType *captureVariable = [recipientObject methodNameArgument:argumentVariable];
xcode quick reference api
⇧⌘0
create a simple string using the “string literal” syntax
NSString *welcome = @”Ari is you!”;
reserve capital case for
Class names
use camel case for
methods and variables