开发者

NSString to NSArray

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜