How do I launch iBooks e-reader programmatically on iPad?

后端 未结 4 1526
萌比男神i
萌比男神i 2020-11-28 09:29

Just like UIApplication.openURL.

Is there an API to launch iBooks with an ISBN?

4条回答
  •  时光取名叫无心
    2020-11-28 10:11

    iBooks

    NSString *stringURL = @"itms-books:";
    NSURL *url = [NSURL URLWithString:stringURL];
    [[UIApplication sharedApplication] openURL:url];
    
    NSString *stringURL = @"itms-bookss:";
    NSURL *url = [NSURL URLWithString:stringURL];
    [[UIApplication sharedApplication] openURL:url];
    

提交回复
热议问题