Adding a subclass of UIViewController in Xcode 4.3

I recently upgraded to Xcode 4.3 from 4.2 and it looks like they got rid of the New File option to add a subclass of UIViewController. I used to do the following:

File => New File ... => Cocoa Touch => Subclass of UIViewController.

but now the options for the new file seem to have changed, and I can not find this option. Can somehow point me in the right direction?

Thanks.

+6
source share
2 answers

In Xcode 7, the function is slightly different:

File => Create => File ... => iOS (Source) => Cocoa Touch Class => select the "subclass" of UIViewController.

Edit: Updated for Xcode 7.3

+17
source

Use File->New->Objective-C Class , select UIViewController as the class.

0
source

Source: https://habr.com/ru/post/913291/


All Articles