Problems with UIAlertView
Problems with UIAlertView
- Subject: Problems with UIAlertView
- From: Laurent Daudelin <email@hidden>
- Date: Mon, 15 Aug 2011 22:22:24 -0700
I finally found out that my UITextField delegate 'textFieldShouldReturn:' is called. When I detect that the textfield that has returned is the last one on the view, I call:
[(UIAlertView *)[iPadNumberTextField superview] dismissWithClickedButtonIndex:1 animated:YES];
That's what is removing the UIAlertView from the screen and that's also shortly after this method is called that the app crashes with EXC_BAD_ACCESS. So, it seems that something is trashed in memory which causes the crash.
Anyone has any idea? Is it OK to dismiss the UIAlertView the way I do?
Thanks!
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden