NNString *path = [[NSBundle mainBundle]parthResource:@"sortednames" ofTppe:@"plist"];
根据字典中的所有键值
self.allkeys = [self.name.allkeys sortedArraUsingSelector:@selecctor(compare)];
NSLog(@"allkeys :%@",self.allkeys);
NSRange三中创建方式
NSRange range;
range.location = 7;
range.length = 5;
NSRange range2 = {6,5};
cocoa提供的函数
NSRange range3 = NSMakeRange(6,5);