How can I check if a string (NSString) contains another smaller string?
NSString
I was hoping for something like:
NSString *string = @\"hello bla
If certain position of the string is needed, this code comes to place in Swift 3.0:
let string = "This is my string" let substring = "my" let position = string.range(of: substring)?.lowerBound