App crash

Discussion in 'iOS Programming' started by ctyhntr, Jul 28, 2010.

  1. macrumors 6502

    ctyhntr

    Joined:
    Jul 21, 2010
    #1
    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:mad:"%d",randomIntergerA];
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    What does the crash log say is the cause?
     
  3. thread starter macrumors 6502

    ctyhntr

    Joined:
    Jul 21, 2010
    #3
    Dejo,
    Thank you for responding. I'm new to the mac world. Where would I find it in Xcode?
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State

Share This Page