最終更新:2017-02-22 (水) 17:44:00 (214d)  

main.m はてなブックマークを見る
Top / main.m

Master-Detail Application

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}
 

Xcode 4/Cocoa Application?

#import <Cocoa/Cocoa.h>

int main(int argc, char *argv[])
{
    return NSApplicationMain(argc, (const char **)argv);
}

Xcode 8.2.1/プロジェクト/iOS

  • //
    //  main.m
    //  iOSSingleViewApplicationObjc
    //
    //  Created by tokkyo on 2017/02/22.
    //  Copyright © 2017年 onakasuita.org. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    #import "AppDelegate.h"
    
    int main(int argc, char * argv[]) {
        @autoreleasepool {
            return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
        }
    }