how to open epub file in iBook from app

953 views Asked by At

How to download epub file and open it in iBook in my swift app. I tried to handle it like this:

var urlAt = NSURL(string: epubFileUrl);
    if (UIApplication.sharedApplication().canOpenURL(urlAt!)){
        UIApplication.sharedApplication().openURL(urlAt!);
    }

The app opened safari, downloaded my file and suggested me "how to open this file"

safari download result

My question - can I download my epub file in my app, and open (or suggest to open) it in iBooks app.

0

There are 0 answers