cari

Rumah  >  Soal Jawab  >  teks badan

ios - 怎样跳转到系统的日历?

怎样跳转到系统日历?

ringa_leeringa_lee2773 hari yang lalu869

membalas semua(1)saya akan balas

  • 怪我咯

    怪我咯2017-04-17 14:38:55

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

    指定日期:

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

    balas
    0
  • Batalbalas