怎样跳转到系统的日历?

怎样跳转到系统日历?

阅读 4.6k
1 个回答

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"calshow://"]];

指定日期:

NSInteger interval = [[NSDate date]timeIntervalSinceReferenceDate];   
NSURL *url = [NSURL URLWithString:[NSStringstringWithFormat:@"calshow:%ld", interval]];
[[UIApplication sharedApplication] openURL:url];
推荐问题