Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"UIViewController subclass" does not appear in file template library for xcode 4.3

I am fairly new to XCODE development currently following several tutorials.

Bumped into an unexpected problem - looking for help!

The problem is that the "UIViewController subclass" does not appear in the file template library. My book and every page I checked has this template under iOS or Mac "Cocoa touch" category. My xcode only shows "Objective-C Class" "Objective-C Category" "Objective-C Class Extension" "Objective-C protocol" "Objective-C Test Case Class"

How can I add a new file template of UIViewController subclass ?

My environments: - Snow Leopard - xcode version: 4.3

Thanks in advance!

like image 851
Shin Avatar asked Feb 19 '12 09:02

Shin


1 Answers

Choose objective-c class and then select UIViewController as subclass.

Apple moved all objective-c class templates into the "Objective-C class" template. They have custom functionality, like "With xib for user interface", there too.

like image 182
Matthias Bauch Avatar answered Nov 08 '22 20:11

Matthias Bauch