Hi, i have done the following...tran is a UIView...doSomething is a methos in UIView.but i cant call that method from viewdidload? any help please?
- (void)viewDidLoad
tran *m_view = [[tran alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[self.view addSubview:m_view];
[m_view release];
tran *s = (tran *)self.view;
[s doSomthing];
[super viewDidLoad];
}