NSString *string1 = @"iphone";
BOOL isStart = [string2 hasPrefix:@"ip"];
NSLog(@"%d",isStart);
BOOL isEnd= [string2 hasSuffix:@"ne"];
NSLog(@"%d",isEnd);
NSString *string1 = @"iphone";
BOOL isStart = [string2 hasPrefix:@"ip"];
NSLog(@"%d",isStart);
BOOL isEnd= [string2 hasSuffix:@"ne"];
NSLog(@"%d",isEnd);