NSAlert pops up for 3 times
- by Marco
Hello community i have a big problem.
i implemented an NSAlert in the viewDidLoad() of my app:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:alertMessage delegate:self cancelButtonTitle:ok otherButtonTitles:nil];
But the Alert pops up for 3 times, and then i can klick on it.
Could it be that the viewDidLoad() starts for 3 times?
This is the viewDidLoad in the rootViewController, that manages the views:
- (void)viewDidLoad {
Kundenkarte *kartenAnsicht = [[Kundenkarte alloc]
initWithNibName:@"Kundenkarte" bundle:nil];
kartenAnsicht.rootViewController = self;
kartenAnsicht.viewDidLoad;
self.map = kartenAnsicht;
[self.view addSubview:kartenAnsicht.view];
[kartenAnsicht release];
// [super viewDidLoad];
}
kartenAnsicht is the view where the problem is.
I hope someone could help me because my ideas are over!