Hello,
In my program I want to cast a view to another. I write like this in viewDidLoad:
But when I call display I am getting unrecognised selector and on printing myView with NSLog I get UIView Object, instead of MyView.
I am not able to identify what is going wrong here. Pls suggest if there is any error here.
In my program I want to cast a view to another. I write like this in viewDidLoad:
Code:
MyView *myView = (MyView *) self.view;
[myView display];
But when I call display I am getting unrecognised selector and on printing myView with NSLog I get UIView Object, instead of MyView.
I am not able to identify what is going wrong here. Pls suggest if there is any error here.