Skip to content

Objc: Variables and Types

Alfie Hanssen edited this page Nov 20, 2013 · 1 revision
int main(int argc, char * argv[])
{
    @autoreleasepool {
        
        NSString *name = @"Alfie";
        int age = 34;
        float height = 6 + 4.0f/12;
        
        NSLog(@"My name is %@. I am %i years old. I am %.2f feet tall.", name, age, height);
        
//        UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }    
}
2013-11-17 14:41:37.515 ObjcBasics[13163:a0b] My name is Alfie. I am 34 years old. I am 6.33 feet tall.
Clone this wiki locally