Open iBooks from an iPad application [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I launch iBooks e-reader programmatically on iPad?
I'm creating an application for a client. The iPad will be pre-loaded with a ebook that we will be creating ourselves. This ebook will not be available in the bookstore, but will be preloaded via itunes.
Is it possible to open the iBooks application from my application, via some URL schema?
Is it then possible to link directly to our pre-loaded book from our application?
Any info would be appreciated.
Cheers
Niall

iBooks registers the itms-books: and itms-bookss: URL schemes. One would hope that passing an ISBN as the url would launch the correct book in the store, but I am not sure if it does.

It seems as if there's a solution for native apps here: http://andycodes.tumblr.com/post/738375724/ios4-sdk-opening-pdfs-in-ibooks
We have a similar issue, and working on implementing solution above.
We currently have hacky version that linked from shared dropbox folder to open in browser, and then asked user to select "Open in iBooks" (as described here): http://support.apple.com/kb/ht4227
Does the trick, and prevents us from having to preload on 200 iPads but lots of room for user error.

Here's a list of url schemes in iPhone OS. Looks like you're out of luck of iBooks.

You could start a mini-webserver with your application and open a URI like itms-books://localhost:1234/my.epub

In short, no. iBooks won't be able to load anything that comes in your application's bundle.

Related

How to Fetch image from Photo Library or Camera with Edit functionality like iPhone

I am developing an app in Xcode 9 and Swift 4. The app allows the user to use their device camera or photo library to select a photo, however, it will not display the edit button to allow the user to edit the image from within the app as it does when the user is not within an app.
I have added the privacy permissions in the plist file and I have searched StackOverflow, Google, Youtube, and this developer forum, but cannot find anything of a recent nature. I did find a question from 5 years and 7 months ago which stated that it was an Apple proprietary functionality. I was hoping that something has changed to allow this functionality from with an app. Any insights would be greatly appreciated.
Thanks !
Tom
You have to write an image editor yourself or use an existing libraries,
Here is an example to get you started:
https://github.com/eventtus/photo-editor

Get app suggestions on trying to open an Epub [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I associate file types with an iPhone application?
I am working on an app that allows everyone to read books like Epub, PDF, ACSM. I installed the app on my IPAD via testflight and then I went to safari to download a ACSM file and tried to open the same.
Safari then gave me suggestions of a few app but it didn't include my app. I am not sure how this works. Any information would be very useful.
I want to have the file copied to the documents directory of my app so that the user will be able to access the same from the library section of the application.
My question has been answered in the following link:
How do I associate file types with an iPhone application?
It solved my issue. Thanks again!

How can I share my iPhone app for translators? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Creating Localization Files for iOS
i have my iPhone company app in English language and we are international company, so how can I share my App for all translators f.e. by simulator or something else ?
f.e. translator translate the text and need view effect on iPhone, how can I do this?
It looks like you are searching for localization for your application.
Please follow this link:
Localization example link 1
Localization example Link 2
Link 3
Best link: Best Link...
Hope it works for you.
You can look at incorporating the Greenwich framework into your app. I've not used it myself, but saw it demo'd at a conference recently. It will let the translators make the changes to the app that you distribute to them as an ad-hoc build and then see them running in your app.

How to launch my iPhone app via Safari URL [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Supporting Open In… menu item in my app for iOS Mail And Safari
I'm working on an application that will download files from the Internet, for further use.
How do I launch my own app when a link is pressed on Safari?
For example, when a .pdf file link is shown in safari the user clicks it and the file is downloaded. After that there is the suggestion to "Open in", followed by a list of possible applications, like iBooks. I want my app to be displayed among these options.
You want to look into associating the PDF file type with your app.
The answers to How do I associate file types with an iPhone application? pretty much covers it.
If you just want to open your app then see Custom URL Scheme.
But associating file type to your iPhone applications is different than custom URL scheme. This thread greatly describe it

Programmatically opening the settings app (iPhone) [duplicate]

This question already has answers here:
is it possible to open Settings App using openURL?
(4 answers)
Closed 7 years ago.
Is it currently possible to go to Apple's Settings application from a third party iPhone application? It's currently possible to open mail, safari, etc. What about Settings?
As of iOS 5.0 you are able to open the settings app using the "prefs://" URL scheme. You are out of luck on earlier versions.
suggestion from Yatheesha is right, but fails under Xcode 7.0/ swift 2.
use:
UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!)
I don't believe so. It would be a welcomed addition, you should file a request for it. There are url schemes for mail,sms etc, but not for settings.
There is no way to do this with the current version of the API sorry.
That said, you can certainly interact with the settings for your particular application. In theory, if you had to, you could re-create the same visual experience of the Settings Application.