fertbuster.blogg.se

Class prefix xcode 6
Class prefix xcode 6






class prefix xcode 6 class prefix xcode 6

import the view controller you want to be displayed first I don't know why people are down voting this as it is a legitimate question, so here is what you need to do:Ĭreate an empty project, create a new view controller (File/New/File) - with XIB file if you need one, import the new view controller into your AppDelegate, and set this view controller as the root view controller. Once that is done you should have a running app using your XIB, and you can delete your storyboard from the project without any adverse affects. Then go into the App Delegate and set the root view controller of your window like you have been for previous versions of Xcode. You need to delete the value shown in this field, so that the Main Interface is left blank. This field should be showing the name of the storyboard. In that subsection there is a field for "Main Interface". There is a subsection called "Deployment Info". Go into your project Target, under the "General" tab. You should then have a connection between view and View. Just click the little circle across from "view" and drag it over to your view to connect it. Once done with that, you want to go to the Connections Inspector to link the view of the File's Owner to the view of the XIB. That is done by going into the Identity Inspector of the File's Owner of the Xib, and changing the default of NSObject to the class name of your view controller. Once the XIB is created, you will want to select it and set the "File's Owner" to point to the "ViewController" class that you want this XIB to link with. I would name it the same name as your original ViewController as it will replace the storyboard we are about to delete from the project. You then create a new file for this project, go into the "User Interface" category and select "View". This starts out with a Storyboard, but as Xcode 6 has removed the option for creating an Empty project, we will just work with it from here. You first make a new "Single View" project.








Class prefix xcode 6