就像UIApplication.openURL
.
是否有用于启动带有ISBN的iBooks的API?
iBooks注册了URL itms-books:
和itms-bookss:
URL方案,因此您可以以编程方式启动iBooks,但实际的URL可能不是ISBN.
的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];
对于您的信息,伙计们:只需要添加itunes.apple.com
URL,就像在Mac上浏览BookStore时在iTunes中找到的那样,但是替换http
为itms-books
和b00m,你拥有它!例
itms-books://itunes.apple.com/de/book/marchen/id436945766
要么
itms-books://itunes.apple.com/WebObjects/MZStore.woa/wa/viewMultiRoom?fcId=510054265&s=143443