Added: 8 months ago
From: DeathRageUltra
Views: 956
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (8)

Sign In or Sign Up now to post a comment!
  • this seemed to work for me:

    - (IBAction)plusMinusPressed { if ([self.display.text hasPrefix:@"-"]){ self.display.text = [self.display.text substringFromIndex:1]; } else {

     self.display.text = [NSString stringWithFormat:@"-%@", self.display.text]; }

    }

  • Comment removed

  • @DeathRageUltra

    Any chance you can tell me how to do the +/- part? or show me the code for it please?

  • @palmloyal

    @property(nonatomic) BOOL userHasEnteredADecimalPoint;

  • I am doing the 2011 course,but cannot figure out how to prevent additional decimals from being entered. Can you please help?

  • Wow...and i can barely finish a "Hello World" program!

  • Ah I finally got it finished as well :)

  • Awesome! How did you do it? I can't really grasp the objective C language yet... :-/ I only got the first part of the assignment :P

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more