Did it disappear ? In XCode 3 it did exist. How to create a subview class in XCode 4 ?
Asked
Active
Viewed 910 times
3 Answers
2
You want to create a template or class...?
A subview class can easily be created by File -> New -> Objective-c Class - > UIView Subclass ..->save

Shubhank
- 21,721
- 8
- 65
- 83
1
What's the problem in adding just a normal UIView??

Antonio MG
- 20,382
- 3
- 43
- 62
-
I'm following a tutorial made on xcode 3 wheras I'm on xcode 4 :) – user310291 Mar 06 '12 at 16:19
0
Make sure you are choosing your xib file to be an iOS User Interface Empty file, not a Mac OS X one. In the latter, only NSView is available, not UIView.

Ben Wheeler
- 6,788
- 2
- 45
- 55