• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems with UIAlertView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: What does the UIReturnKeyTypeGo does exactly?
  • Next by Date: Re: What does the UIReturnKeyTypeGo does exactly?
  • Previous by thread: Re: Problems with UIAlertView
  • Next by thread: Re: Problems with UIAlertView
  • Index(es):
    • Date
    • Thread