// 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];
}

 

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

posted on 2016-09-01 11:25  pruple_Boy  阅读(4172)  评论(0编辑  收藏  举报