sunricher 发表于 2018-4-27 16:15:42

GizDeviceSchedulerSuper 的 date, time 等属性无法修改


例如:
GizDeviceSchedulerCenter.delegate = self;NSArray *timers = ;GizDeviceSchedulerSuper *timer = timers.firstObject;
NSLog(@"time %@, date %@, type %zd", timer.time, timer.date, timer.schedulerType);// 打印 time 14:34, date 2018-04-27, type 1
;;NSLog(@"time %@, date %@, type %zd", timer.time, timer.date, timer.schedulerType);// 打印 time 14:34, date 2018-04-27, type 1
在进行了 setDate 与 setTime 的修改之后,timer 的 date、time 属性并无变化,不利于 App 的编写。


sunricher 发表于 2018-4-27 16:17:02

Sorry, 忘记贴代码格式。
GizDeviceSchedulerCenter.delegate = self;
NSArray *timers = ;
GizDeviceSchedulerSuper *timer = timers.firstObject;

NSLog(@"time %@, date %@, type %zd", timer.time, timer.date, timer.schedulerType);
// 打印 time 14:34, date 2018-04-27, type 1
      
;
;
NSLog(@"time %@, date %@, type %zd", timer.time, timer.date, timer.schedulerType);
// 打印 time 14:34, date 2018-04-27, type 1
页: [1]
查看完整版本: GizDeviceSchedulerSuper 的 date, time 等属性无法修改