How to get Today 10 AM and Tomorrow 10 AM in ios?
NSDateComponents *nowComponents = [calendar components:NSYearCalendarUnit | NSWeekCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit fromDate:today];
[nowComponents setHour:10];
This is not giving proper response. How can I do this?
Try this code, hope it’ll work. If you want to get tomorrow’s
10 amthen, set hour to34.