Number of weeks in month

前端 未结 1 2039
夕颜
夕颜 2021-01-17 02:08

I have the following code:

NSDate *dateNow = [[NSDate alloc] init];
NSTimeInterval timeDifference = [usersDate timeIntervalSinceDate:dateNow];
// Get the sys         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-17 02:42

    Doesn't it work to just use:

    unsigned int unitFlags = NSWeekCalendarUnit;
    

    ?

    0 讨论(0)
提交回复
热议问题