iOS时间字符串固定位24小时制

2023-05-15  本文已影响0人  44b6889cedeb

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];

    NSLocale *zh_CNLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];

    dateFormatter.locale= zh_CNLocale;

上一篇 下一篇

猜你喜欢

热点阅读