I'm working with IOS app , and I'm facing a problem with uilocalnotification , my app working with web service ,
problems 1:
1 - my webService will return information such as date , time , days , and my app will add this date to local notification , the problem is web service return the days like this
Monday Tuesday Wednesday
and when i use UILocalNotification with dateComponent i found the dateComponent accept only one day and also the day must be int not string now how i can pass the day one this method
SetDay but not using int , using string like (Monday)
i have done this
NSString * hour =@"23:00"; [dateComponent setWeekday:3]; // For Monday i want to change 3 with @"Monday" [dateComponent setHour:hour]; [dateComponent setMinute:minuts];
Problem 2 :
as we have seen setHour and SetMinute , i have only one string contain hour and Min is there any way to set both in one , because as you see I'm getting the time from string like above .
please help .
thanks