[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString](/ios/UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString);
-(void)checkTimeFrame { NSDateComponents *components = [NSCalendar currentCalendar] components:NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit fromDate:[NSDate date](/ios/NSCalendar currentCalendar] components:NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit fromDate:[NSDate date); NSInteger currentHour = [components hour]; if (currentHour < 9 && currentHour > 3) { // Do Something NSLog(@"In between the times"); NSLog(@"%ld\n", (long)currentHour); } else { NSLog(@"Not between the times"); NSLog(@"%ld\n", (long)currentHour); } }
-(void)viewDidAppear:(BOOL)animated { [self.searchBar becomeFirstResponder]; }