PDA

View Full Version : App crash




ctyhntr
Jul 28, 2010, 12:22 PM
I'm working on a class project (iPhone application), and I'm trying to troubleshoot a crash.

I'm taking a randomly generated number (Integer) and re-formatting it as a NSString to send through my outlet to an UILabel field. It works twice, then crashes the app. Thoughts?

int randomIntergerA = 1+ arc4random() %(100);
statusTextA.text = [NSString stringWithFormat:@"%d",randomIntergerA];



dejo
Jul 28, 2010, 12:38 PM
It works twice, then crashes the app. Thoughts?
What does the crash log say is the cause?

ctyhntr
Jul 28, 2010, 01:22 PM
Dejo,
Thank you for responding. I'm new to the mac world. Where would I find it in Xcode?

dejo
Jul 28, 2010, 02:00 PM
Since you're new, you should probably start here: Debugging Applications (http://developer.apple.com/iphone/library/documentation/xcode/conceptual/iphone_development/130-Debugging_Applications/debugging_applications.html)