我有一个这样的字符串:@"10/04/2011"我想在另一个字符串中只保存"10".我怎样才能做到这一点?
@"10/04/2011"
string objective-c nsstring swift
nsstring ×1
objective-c ×1
string ×1
swift ×1