开发者

NSString to NSArray

开发者 https://www.devze.com 2023-03-17 13:42 出处:网络
I want to split an NSString into an NSArray. For example, given开发者_JAVA百科: NSString *myString=@\"ABCDEF\";

I want to split an NSString into an NSArray. For example, given开发者_JAVA百科:

NSString *myString=@"ABCDEF";

I want an NSArray like:

NSArray *myArray={A,B,C,D,E,F};

How to do this with Objective-C and Cocoa?


NSMutableArray *letterArray = [NSMutableArray array];
NSString *letters = @"ABCDEF
0

精彩评论

暂无评论...
验证码 换一张
取 消