سؤال

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!

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top