ios - How to put countDownDuration time from my picker into an integer? -
i found how log time picked:
- (ibaction)save:(id)sender { nsdateformatter *formatter = [[nsdateformatter alloc] init]; [formatter setdateformat:@"hh:mm"]; nslog(@"%@", [formatter stringfromdate:[datepicker date]]); }
what want accomplish is:
i have model class sub-class of nsmanagedobject, class created .model entity.
whenever click "save" method want give model class count down time, each object of class have it's countdown time , can fire each object...
i'm beginner helpful if can give me guidance in type of object should store count down time selected, , why though putting inside integer see it's not true.
thanks
you need extract components of nsdate. there's class this: nsdatecomponents
.
check out other s.o. question guidance:
Comments
Post a Comment