Just use a simple if statement…
if(score <= 50)
score = score - 2;
Quick google search provides some useful docs
More Related Contents:
- How does an underscore in front of a variable in a cocoa objective-c class work?
- Objective-C declared @property attributes (nonatomic, copy, strong, weak)
- UIScrollView doesn’t use autolayout constraints
- Getting row of UITableView cell on button press
- Best practice? – Array/Dictionary as a Core Data Entity Attribute [closed]
- Is it possible to make the -init method private in Objective-C?
- Display animated GIF in iOS
- Xcode intellisense meaning of letters in colored boxes like f,T,C,M,P,C,K,# etc
- ViewController respondsToSelector: message sent to deallocated instance (CRASH)
- Supporting Open In… menu item in my app for iOS Mail And Safari
- What does @synchronized() do as a singleton method in objective C?
- Weak NSString variable is not nil after setting the only strong reference to nil
- What is meant by .delegate=self?
- How to prevent circular reference when Swift bridging header imports a file that imports Hopscotch-Swift.h itself
- NSMutableDictionary thread safety
- Split an NSString to access one particular piece
- How to compare two dates in Objective-C
- How to use Swift struct in Objective-C
- NSString: isEqual vs. isEqualToString
- UIScrollView contentSize not working
- Access iOS dictionary programmatically
- How to get the reference count of an NSObject?
- How to convert an NSTimeInterval (seconds) into minutes
- Create objective-c class instance by name?
- Unable to set frame correctly before viewDidAppear
- Can we invite people to use our app or send friend request from the app via Facebook in iOS 5?
- Creating a ZIP archive from a Cocoa application
- how to remove subviews from scrollview?
- Objective C: How to create a multi-line UITextField? [duplicate]
- What is the difference between a __weak and a __block reference?