• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/6

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

6 Cards in this Set

  • Front
  • Back
Sample hello world
#import <Foundation/Foundation.h>

int main (int argc, const char *argv[]_
{
NSLog (@"Hello, Objective-C!");
return 0;
} //main
Define array of strings

access an element of the array to print
NSArray *fruit = [NSArray arrayWithObjects: @"apple", @"bananr", @"mango", nil];

NSLog(@"%@", [fruit objectAtIndex:2];
define a mutable array
NSMutableArray *counter=[NSMutableArray ArrayWithCapacity:24];

You should always define an approximate capacity
Synthesized accessor methods
@property -> .h
@synthesize -> .m
inheritance syntax
@interface Sphere: Circle {
//your code
}
Type ID
int x = 50;
id y;
y = x;
NSLog(@"%@", y); //50 on screen
char c='a';
NSLog(@"%@",y); //a

y is and integer of type id that can hold any value