3.鍒嗛殧瀛楃涓?/span>
NSString*string =@"sdfsfsfsAdfsdf";
NSArray *array = [string componentsSeparatedByString:@"A"]; //浠庡瓧絎涓垎闅旀垚2涓厓绱犵殑鏁扮粍
NSLog(@"array:%@",array); //緇撴灉鏄痑dfsfsfs鍜宒fsdf
灝忓啓瀛楃杞負澶у啓瀛楃
1 NSString *str = @"mobile developer tips";
2
3 // Convert string to uppercase
4 NSString *upperStr = [str uppercaseStringWithLocale:[NSLocale currentLocale]];
5 NSLog(@"upperStr: %@", upperStr);
6
7 // Convert string to caps
8 NSString *capStr = [upperStr capitalizedStringWithLocale:[NSLocale currentLocale]];
9 NSLog(@"capStr: %@", capStr);
10
11 // Convert string to lowercase
12 NSString *lowerStr = [capStr lowercaseStringWithLocale:[NSLocale currentLocale]];
13 NSLog(@"lowerStr: %@", lowerStr);

]]>