Custom UIView Not Recognized as Default View by UIViewController (compiler) Without Casting
===

In a simple "Single View" test project:

1. I subclassed UIView and specified it in the storyboard's Property Inspector as the class to be used as the viewController's default view. 

2. In my custom UIView class I define a property called "drawSwitch."

3.  I import the header of my custom class in my viewController class.

I was surprised that the compiler does not recognize my subclass with the line of code below, giving the error: *Property 'drawSwitch' not found on object of type 'UIView'*

    [self.view setDrawSwitch:2];;

Yet if I cast it, the code compiles and runs fine:

    [(TestUIView*) self.view setDrawSwitch:2];
    
    
When I view the properties of my viewController, my custom class is indicated as the Outlet for the view property.

So I am confused at what is going on with the storyboard here. Is it letting me do something which the compiler isn't happy with? I know I can create an IBOutlet for my custom view (per below: "testView") but it seems... um what's the word... *REDUNDANT* when the view is already defined.

Am I missing something here? (beyond "that's the way it works").

![enter image description here][1]


  [1]: http://i.stack.imgur.com/7rQiR.png