Objective-C
NSString * nsString = @"NSString type";
NSRange range = [nsString rangeOfString( @"type" )];
BOOL exist = ( range.location != NSNotFound );
Swift
let swiftString = "Swift String type"
let range = swiftString.rangeOfString( "type" )
let exist = ( range != nil )