• 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 19:45:03 -0700

Hello.

I'm having a problem with a UIAlertView that was working fine under iOS 4. Now, when running under iOS 4.3.2, the application crashes when the user click on the "Go" button and I'm not sure why, since I haven't changed anything in this code in months.

Basically, I set up and UIAlerView and add a few UITextFields to it for user input. There is one button, the "cancel" button:

placeholder = @"\n\n\n\n\n";
loginAlertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"RetailerLogin", @"Retailer Login")
			message:placeholder // IMPORTANT														delegate:self
			cancelButtonTitle:NSLocalizedString(@"Login", @"Login")
			otherButtonTitles:NULL];

	[loginAlertView addSubview:emailAddressTextField];
	[loginAlertView addSubview:passwordTextField];
	[loginAlertView addSubview:iPadNumberTextField];
	[loginAlertView show];
	[loginAlertView release];
	[emailAddressTextField becomeFirstResponder];

My alertView:didDismissWithButtonIndex: is never called.

Also, I'm just starting using Xcode 4. I can't seem to be able to get a decent stacktrace in the navigation view for some reason.

In the navigation view, I see which thread that crashed but when I click on it, it only points me to main.m where the UIApplicationMain function is called, not very useful.

Instead, I have to click the thread in the thread popup in the path-like control above the console output. Then, I get the stacktrace which actually shows that the crash occured in objc_assign_ivar(), called from [AppleSpell init]->[UITextChecker _checker]->…

Is there anyway to get that real stacktrace in the navigation pane or displayed somewhere like Xcode 3 used to do?

Any idea why the code crashes on 4.3 but not on 3.2?

Thanks in advance for any help, pointer or info.

-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

  • Follow-Ups:
    • Re: Problems with UIAlertView
      • From: Fritz Anderson <email@hidden>
    • Re: Problems with UIAlertView
      • From: Hunter Hillegas <email@hidden>
    • Re: Problems with UIAlertView
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
  • Next by Date: Problems with UIAlertView (2)
  • Previous by thread: Re: Finding the UITableViewCells that intersect a rect?
  • Next by thread: Re: Problems with UIAlertView
  • Index(es):
    • Date
    • Thread