Sunday 15 July 2012

objective c - How to create an empty ios project in xcode 6? -



objective c - How to create an empty ios project in xcode 6? -

i'm using xcode 6 , no longer have "empty project" alternative when creating new project, single view one...is there alternative or it's gone , need deal it?

thanks bunch

you need deal it, it's easy. start single view application. delete storyboard , delete reference in info.plist (so there no longer main storyboard). if like, delete view controller class well. scratch in app delegate's application:didfinishlaunchingwithoption:, did in xcode 5.

i'm using swift these days, i'll show pure code app delegate launch looks in swift; i'm sure can translate objective-c:

import uikit @uiapplicationmain class appdelegate : uiresponder, uiapplicationdelegate { var window : uiwindow? func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool { self.window = uiwindow(frame:uiscreen.mainscreen().bounds) self.window!.rootviewcontroller = viewcontroller() // or whatever phone call self.window!.backgroundcolor = uicolor.whitecolor() self.window!.makekeyandvisible() homecoming true } }

ios objective-c xcode6

No comments:

Post a Comment