You haven't given exception details, but it looks like you are calling the instance after is has been deallocated.
In the logOutAction:
method you are setting up a future call using [self performSelector:@selector(logOutAction:) withObject:nil afterDelay:0.1];
. Then you are dismissing the view. So when logOutAction:
is called in 0.1
seconds the instance wont exist and you will crash.
It makes no sense to use performSelector
here - remove it.