Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using NSRange rangeOfString
- NSRange range = [self.display.text rangeOfString:@"."];
- if(range.location == NSNotFound){
- self.display.text = [self.display.text stringByAppendingString:@"."];
- `rangeofString` is used to finds and returns the range of the first occurrence of a given string within the receiver.
Add Comment
Please, Sign In to add comment