iOS---把字符串分割成数组
NSArray *lab = [status.labels componentsSeparatedByString:@","];
NSString *button0 = [lab objectAtIndex:0];
NSString *button1 = [lab objectAtIndex:1];
NSString *button2 = [lab objectAtIndex:2];
NSString *button3 = [lab objectAtIndex:3];
NSLog(@" 0 %@ ",button0);
NSLog(@" 2 %@ ",button1);
NSLog(@" 1 %@ ",button2);
NSLog(@" 3 %@ ",button3);
NSLog(@" l %lu ",(unsigned long)lab.count-1);
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇:没有了
- 下一篇: iOS---取出字符串中的数字
copyright © 2008-2019 入门客AI创业平台 版权所有 备案号:湘ICP备2023012770号