I've been looking around and I just couldn't find anything that really fits my (very simple) needs.
I have a UIImage (as a NSData, then file, then image) that is displayed, and I'd like to be able to tap it and display the native "show", that has the little box & arrow icon where you can decide wether you wanna save the picture, or share it by mail, facebook, twitter, and so on.
Wherever i've looked I only found a great looking framework that clearly overkills my needs, or confusing information about PHAssets and PHImageManager.
I do not need to browse multiple photos, nor to see photos from albums. I just need to see my picture with the native "Share" button (box with outgoing arrow) and the native layout.
Is there such a thing available ? Without having to download a framework? Or should I just use the 5% of MWaterfall that i need?
Related
I basically want the ability to check first within two specific dates if a user has taken any pictures on his phone. If so, if he clicks a button in my app the photo viewer (ideally exactly the same as used in the Photos app) should be opened and only these pictures/videos should be displayed. Then the user can look at them, share them, basically also the exact same functionality as the Photos app offers. But how can I do that? So far it seems I would have to code this completely from scratch, since I don't want the user to "pick" any picture but just look at them, share them etc. Or is there any SDK for this?
On iOS, my requirement is disallow user to take manual screenshot from my application, either disallow or blur the captured screenshot. How?
The only solution is to simulate the iOS controls you have in your View using DRM'ed videos.
For each widget you need to create a video subclass that renders the widget, and apply DRM to the video.
You can try to do it yourself, or use a commercial solution such as the following:
https://screenshieldkit.com
It is possible but I don't recommend it because of the room for error. It was easier to do in the past, in iOS13 you will have to do it like this:
You will have to ask for the user's permission to read and edit their photo library, then you have a listener which is checking the number of photos in their library while they are using your app, if that number changes, they have just taken a screenshot (unless you allow other things in your app like tap and hold to save image, etc). When this happens, read said photo and apply a blur, then delete the photo from their library and save the blurred photos.
Warning: There are times where a user may get a photo while using your app that is not a screenshot (e.g. they received an airdrop) and you will now be tampering with their photos, which is very bad. To prevent this you may need to use key value pixel encoding on your screen at all times, for example the first 3 pixels of the screen are 3 very specific RGB values, that way if a new photo is detected and the first 3 pixels are those exact RGB values you know it's a screenshot of your app and not just another photo that was somehow saved while the user was using the app.
There isn't any regular solution to your problem!
You can do some tricks such as if you force the user to have their finger on the screen for the image to show then I don't think they can create screenshots. Because as soon as you press the home+lock keys to actually take the screenshot, the screen seems to behave as if there are no fingers touching it.
BUT what if the user takes a screenshot by AssistiveTouch?!
OR what do you want to do if user records screen and taking screenshot from the video?
I think it's better to change your strategy for example notify the owner of picture for taking screen shot by another one (like SnappChat)!
I am developing an app that has an internal gallery with some images.
What I want to achieve is exactly a result that behaves and looks like the Apple Photo app image viewer.
With a collection view I implemented the gallery images with thumbnails and now I would like to show the image on fullscreen on press.
The image viewer should have exactly the Apple's Photo behavior:
Full screen on single tap,
Delete, Share button etc...
Pinch to zoom, double tap zoom...
My question is. Is that really possible that such a common feature is not already given by iOS? Is there maybe a view controller already build in that we can use but I am not aware of?
I know there are some libraries around that make such thing, but I'm wondering if there's already something given.
I am trying to create a mobile app for photo sharing similar to instagram like this:
Notice 2 things:
Original image aspect ratio of the square photo is preserved (nothing is cropped out)
Link "Instagram" points to the instagram page of the photo
https://instagram.com/p/72U--QKh5EDiTeBDvqSpKqltAkgog3HwaWqGI0/
I am really not clear and based on the documentation from here (checkout point no.4):
https://developers.facebook.com/docs/sharing/best-practices#images
"We've also redesigned link page posts so that the aspect ratio for images is the same across desktop and mobile News Feed. Try to keep your images as close to 1.91:1 aspect ratio as possible to display the full image in News Feed without any cropping."
So it says that best is to make sure the shared image is 1.91:1 to prevent anything cropped out.
In practice with Instagram is possible but documentation says otherwise. Can someone provide a clear guideline/doc on how to share a "square" photo and preserving the aspect ratio displayed in facebook timeline (and provide a specific link to the photo page)? If answer with code for web/ios/etc would also be great.
Based on the discussion in FB Dev Community (mentioned by FB guys themselves), it is clear that it is not allowed even they not officially stating it.
https://www.facebook.com/groups/fbdevelopers/961186750591506
Facebook owns Instagram, they have monopolistic behaviour over how Facebook gives access to Instagram.
In wish of some fairness, openness and anti-monopolistic behaviour of facebook, If you guys really wish to have this feature, vote up more on this and put in comments to support it, hope they will hear out on such a critical feature needed for photo-sharing apps (just like instagram)
I am looking for some framework that allows me to create a Photo Gallery that allows the user to swipe through pictures, and then select one and it takes them to a specific view based on that image. I seen this idea in another App, and didnt know if this was an open source framework, or if there is anything similar.
I wrote a library that should be able to handle this:
https://github.com/nicklockwood/iCarousel
Check out the "custom" or "time machine" carousels in the example app for something similar to what you've shown.
Here's a screenshot. Don't worry that it's not exactly the same as your picture; the angle, panel size, etc. can all be configured.