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:

nsdate year/month/day


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -