I'm using the iOS QuickLook framework in a project and a client request is to add an Email button into the Actions menu, alongside the available actions already present.
Example: Email, Print, Open In...
Is there a way to do this? I was thinking setToolBarItems or something similiar but I don't want to replace default actions.
Thanks SO!
Related
I need to show a preview of a URL (like FB and WhatsApp do), while the user is entering a link in a UITextView.
Is there a library on iOS to grab it, or do we have to make our own?
Thanks in advance.
iOS does not provide this functionality by default.
You will have to build your own or use an open source solution.
This project might provide what you need:
https://github.com/itsmeichigo/URLPreview
My project is in SWIFT
User receives an email with Change Password link and the link is going to be like this http://foobar.com/something/reset_token=barfoo
When user taps on link 'Change Password' it should take him to my iOS app to that particular view controller. I know deeplinking but my URL is going to be like this http://foobar.com/something/reset_token=barfoo and not deeplink://
Please help
If you are targeting iOS9 and newer, you can use Universal links
It allows you to redirect the user to your app from an URL (classic http/s), but he can stay in Safari if he really wants to.
You can found the result in action and a good article about your specific case here:
https://blog.curtisherbert.com/ios-9-universal-links-and-forgotten-passwords/
I'm fighting with UIActivityViewController in iOS 8. I'd built a custom Pinterest sharing mechanism which works beautifully in iOS 7 -- specifically, it uploads an image to my server, and then creates a Pin with that image and a URL which I specify. This is the desired functionality.
Now, in iOS 8, Pinterest has implemented its own sharer, which accepts either a URL or an image. If a URL is included in the list of Activity Items, the sharer pops up and asks the user which image s/he wants to share from the page at that URL, and totally ignores the image which is also in the list of Activity Items. If there's no URL, and just the image, then the uploaded pin doesn't include a URL.
In order to resolve this, I need to do one of these things:
Disallow Pinterest's sharer from appearing in the list, so my customized sharer can show up instead;
Somehow specify a Source URL within a pin of an image using Pinterest's sharer (I doubt this is possible);
Remove all the other images from the generated web page. I'd really rather not do this.
Or if all else fails, it would be useful to at least be able to detect if the user has Pinterest's sharer selected to show up in their list.
Does anyone know if there's a way to achieve any of these things?
Just an idea, you could set a custom UIActivitySource on your UIActivityViewController.
Then check the incoming activity type for Pinterest. Then disable that via the exclusions.
Anybody know the linked in custom url scheme to pass the text to the create message screen of linked in iOS App?
I know that "linkedin://share" will open up the create message screen but I need to pass the text that I want to share as well.Anybody know the parameter name for that?
linkedin://messaging/compose/username
I'm using the UIActivityViewController to share an image and url from within my app.
I'm having trouble formatting the facebook post. I attach an image using a subclassed UIActivityItemProvider and provide the text for the post in the same way.
I want to add a url, but it needs my apps custom url scheme in front of it like this
myurl://image?url=http://imageurl.com
The problem is, when this is posted, only the last half of the url is clickable (from http:// onwards). Which means it doesn't open my app with the url.
Is there another way to do this?
I know I can create an app on Facebook, but how can I tie the two together using the UIActivityViewController?
Thanks
You have 2 options :
Create a simple server-side web service that will redirect from http://yourserver.com/linkToApp/image to myurl://image .
It could even show a different page/preview if the app is not installed/if you're not on an ios device.
Create a facebook app and use "Deep linking" (it will basically do the same for you..)