iOS 一招搞定去掉字符串开始的0,尤其是针对时间格式化

// 2.利用整型自动去掉开头的0, 不要循环和判断prefix以及截取字符串
- (NSString *)pp_formatDateWithArrYMDToMD;
{
    NSInteger month = [self[1] integerValue];
    NSInteger day = [self[2] integerValue];
    
    return [NSString stringWithFormat:@"%lu月%lu日", (long)month, (long)day];
}

---- 写为集合的类目,将年月日拆分到一个集体后调用该方法