Simple addView problem
- by Buyin Brian
Hi there.
I have a simple addView problem that is driving me nuts, I know I am overlooking something simple, perhaps another set of eyes can help.
I have a Nib with a view that has a class identity set to TestView
In my view controller, I use the following code:
CGRect myRect = CGRectMake(0, 0, 320,240);
TestView *myTest = [[TestView alloc] initWithFrame:myRect];
[self.view addSubview:myTest];
I have a NSLog in the TestView class's initWithFrame that fires when the above code is executed, but the view doesn't appear in the view controllers view.
Thanks for your help.