I would like to ask the user to give access to the photo library, but only to let him give me access to all photos, not selected ones.
Is there a way to implement this?
I am using the requestPermissions from MediaLibrary
Link
Any help would be appreciated! :)
I could not find it in the docs or anywhere else for that matter
Related
I have a direct chat messaging app where when a user pastes and submits a share link via apple maps of a specific location, it displays as a long ugly link. The redirect and it being clickable is all good and okay, but optically, it'd be nice to abbreviate it like iMessage does for apple maps links to maps.apple.com.
Is there any way to detect and convert the link into one that is easier to consume? I could not find any references or threads to even begin experimenting with solutions, so any thoughts would be greatly appreciated.
You can use Apple's CLGeocoder to convert coordinates and create a "link preview" feature inside your app. Here are some useful links:
https://developer.apple.com/documentation/corelocation/clgeocoder
https://developer.apple.com/library/archive/technotes/tn2444/_index.html
I want to make a simple app that will show a random article from a user's safari reading list, but couldn't find an easy way to do that, is it possible? Thank you in advance.
There is no way to do this. (As per iOS 10).
You can only add URL to safari using SSReadingList object using SafariServices but won't be able to read from it as that might comprise user privacy
I’m currently developing an iOS application (with Swift 3). In order to improve the user experience for the sharing, I would like to integrate What’s App.
Indeed, after some actions, the user can, if he wants, share a PDF file with UIActivityViewController.
To assure the best user experience possible, it would be amazing if the user could share directly to a phone number with What's App (without the creation of a conversation before as it's currently possible).
Do you have any ideas ?
I didn’t find anything yet, or is it something impossible ?
Thanks for the informations.
Regards
According to their own documentation, it doesn't seem to be possible. You can read up on the possibilities here:
https://www.whatsapp.com/faq/en/iphone/23559013
But you can't pass a phone number or any contact information with your URL request unfortunately.
I'm developing an app and I want a user to be able to start typing a song name/artist/whatever and then have a list/drop-down show suggestions on the fly depending on what the user typed (preferably as the user is typing).
I was thinking I would need to use some sort of API which queried the iTunes database for songs available for purchase (or any other large database with song information), but I'm open to using any other source.
Does anybody know of an API I can look into or a framework I can use. I don't need a solution in code or anything, I'm simply asking for a nod in the right direction.
Let me know if you need anymore information. Thanks.
Apple exposes a search API for the iTunes Store. That should help you. https://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
Here's a writeup by Apple describing the API: https://www.apple.com/itunes/affiliates/resources/blog/introduction---search-api.html
From there, you just have to hit the endpoint with the appropriate parameters and then display the results. The endpoint is:
https://itunes.apple.com/search?parameterkeyvalue
Is it possible to implement the iOS 5 > 'Photos' app cropping mechanism? This is exactly what I need for my app. I need to allow a user to pick an image and crop that photo using something like what the 'Photos' app provides. Is there a library for this? Can I hook directly to it from the SDK? What are my options here? I have looked through Google and Github with no luck.
The standard SDK provides a way to get a picture, let the user crop it, and import it into your App, See: http://developer.apple.com/library/IOS/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html