1;把NSString切割出某一部分成NSString
NSString *firstStr=[self.textField.text
substringWithRange:NSMakeRange(0,
1)];
2:切割到数组中
NSArray* dateArray = [dateString componentsSeparatedByString: @"/"];
时间: 2024-10-08 14:52:51