Hi Forum
I have a viewController that gets added to the current view like this:
theDetail = [[detailController alloc] initWithNibName:@"detail" bundle:[NSBundle mainBundle]];
[self.view addSubview:theDetail.view];
Now - when the user closes this new view, I remove it from the superview.
The User might hit the button to show this view twice, though. But When I do this, the detailController gets alloced a second time and I get a retain-count of two.
When I release the detailView first, I get a n error on the second click...
Anyone who can show me the right way to do this?