I hope I overlooked something, but I haven't been able to find anything about reading/loading Safari bookmarks while using another application.. Is that possible? I want users to be able to copy existing bookmarks to a list in my application.
Thank you very much
Not through the existing SDK or APIs but some threads suggest, through jailbreaking, you can access the file at:
/var/mobile/Library/Safari/Bookmarks.plist
It would be useful but no, I'm not aware of any official method of importing Safari's bookmarks.
Related
I am trying to import a PDF file from other applications, such as mail, but I'm not sure exactly what I should be looking for. I want my user to be able to tap on the share button in a PDF and my app to be listed there as a place that can accept them, such as "Copy to iBooks"
Any good tutorials? Or suggestions as to what I should look for?
Preferably in Swift
Thanks!
You may use Action Extension for making PDF available in your app
Below i have linked Some Tutorials for Action Extension which is not perfect for your requirement but you check the concept and basic implementation for it
Bookmark from Browser
Read a text
Official apple doc
You can tell your app which types of documents it will support in the info.plist. A good place to start is Registering the File Types Your App Supports
in the iOS documentation.
I noticed that there is software (such as iExplorer) that allows you to access files on an iPhone-device from your Mac.
Now my question is: How can I access iPhone files via Objective-c?
This is only for educational purposes.
I found this: https://github.com/Chronic-Dev/libirecovery but I'm not sure if I'm on the right track.
So it seems that you're looking for an API which makes it possible to access the filesystem of the iPhone from a computer. Well, this API exists, and it's called the MobileDevice framework.
Unfortunately, there's no easy or legal way to access files on your iPhone, especially through Objective-C.
The applications installed on iOS are sandboxed, which means they can only access files in their own directory tree; they have no access/knowledge of other files.
Like you said, you can access files using software like iExplorer, but not programmatically from the iPhone itself.
Here is an old project to browse the iphone. You may be able to get some pointers from it on building an application to do the same with the latest info.
http://code.google.com/p/iphonelist/
Couple that with carbonic acid's post about the Mobile Device Framework and you should be able to do some good stuff.
if I find more unique info ill post it here.
I'm now developing new app that needs to show mobileSafari Bookmarks list ...
I want to use common API,but there seems no apis...
I saw following URL and copy code to my app..
http://www.telesphoreo.org/pipermail/iphone-gcc/2009-February/000632.html
But,it doesn't show any of bookmarks list..
Any idea?
Please help me...
Thanks and regards...
Mobile Safari bookmarks are not accessible via the iOS SDK currently. Even if your example code worked, it would most likely be rejected by Apple. Sorry.
I want to know if i can develop an app that would download books in epub format from a website and then it would be accessed by iBooks ( iPad app for Reading books ) to read that file.
The issue in my view is that an application can access files present in its own SandBox and it is not allowed to access any file outside it. Please explain if there is any way that files can be downloaded to a specific location on iPad which would be accessible by other apps.
Thanks!
Taimur
No, apps generally cannot access files outside their sandbox (except Apple's own apps, of course, but it is very unlikely they would interfere in another app's sandbox).
However, that is why Apple introduced UIDocumentInteractionController.
Thanks Everyone i have found the answer!
http://andycodes.tumblr.com/tagged/uidocumentinteractioncontroller
Does anyone know of a way to access the bookmarks of the "Maps" application programmatically through the SDK? I'd like to read and write bookmarks if possible. Ideas?
Thanks!
I am pretty sure the answer is no. I considered two possible solutions:
Can you access the data persisted by the Maps app directly
There isn't a generic way of sharing data between apps, so a no for this approach.
Can you access the bookmarks through the new 3.0 MapKit Framework.
No. Unless I have missed it. It doesn't look like the MapKit exposes this functionality.