原文:iOS-字符串的连接

越努力.越幸福. willingseal. 一 连接两个字符串 NSString type self . type objectAtIndex:typeRow NSString subtype self.subtypeobjectAtIndex:subtypeRow NSString typesub NSString stringWithFormat: gt ,type,subtype NSStr ...

2013-06-05 21:45 0 6736 推荐指数:

查看详情

IOS-时间与字符串互相转换

https://blog.csdn.net/u012605210/article/details/37879511 有时会遇到这样的问题,需要把时间和时间戳互相转换 比如把当前时间转换成 “201 ...

Wed Jul 25 17:35:00 CST 2018 0 899
ios 字符串截取

NSString *str = @"my name is jiemu"; 1.从第三个字符开始,截取长度为4的字符串 NSString *str2 = [str substringWithRange:NSMakeRange(3,4)];//str2 = "name" 2.截取到第n为(第n位 ...

Wed Jan 18 04:06:00 CST 2017 0 17198
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM