UIActivityViewController with integrated gallery (like in the stock Photos iPad app) - ios

If you launch the Photos app on iPad (iOS7) and tap the action button, you get a UIActivityViewController whose top half is made of a multi-select gallery, from within which you can select any number of items. The sharing options automatically adjust from your selection (for example "Twitter" and "Assign To Contact" disappear if you select more than one item).
I have found nothing that appears to support this in the iOS7 SDK, so I wonder if this feature is unavailable to developers. Does anyone know how such a thing can be done?

When using a UIActivityViewController you can set an array of items that you wish to share. Normally this is just an image and maybe a string (for tweeting an image, for example) however if you add multiple images to the array that you use in - (id)initWithActivityItems:(NSArray *)activityItems applicationActivities:(NSArray *)applicationActivities; you can share more than one image (and such 'Assign to contact' or 'Tweet' aren't available because they need only one image).

Related

iOS Embed Activity (share) View Inline

The iOS UIActivityViewController overlays existing content as a stack. It is customisable but is there a way to move its position entirely and embed it inside another view.
Say I have a list of the user's contacts whom use my app. When clicking on one of those contacts, instead of overlaying the ActivityView, the contact would expand (accordion) and reveal certain elements of the ActivityView to allow user sharing.
I appreciate that this can be done by writing a custom Activity View however, unless I'm mistaken, there is no way to ascertain whether the user has certain other apps installed to allow sharing via WhatsApp or Messenger for example.

iOS: SDK for viewing photos of your own album

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?

Markup feature in images in swift

I've created a chat app, where user can chat and share images. Now I need to add feature where user can edit and perform some annotation on images. I've heard from iOS 9 there's a new feature called markup to perform editting on images. I've checked UIActivityViewController and couldn't find in it. Is this feature available and can it fit to my requirement? If not, is there any other alternatives that I can approach?
Yes you are Right Markup feature is available from ios 9.
iOS 9 has introduced a set of markup tools for images that you attach
with a message in the Mail app.
To use this feature,
1) Open the Mail app and compose a new message (or reply to an old one if that’s what you need to do).
2) Tap and hold on the message body area and in the floating actions bar, tap the Insert Photo or Video option. From your camera roll, insert a photo.
3) Tap and hold on the photo and in the floating actions bar that appears on the photo, tap the new ‘Markup’ option.
--> Your photo will be enter in Editing mode.
Markup tool will look like this ,
From the link whats-new you will find that apple implement markup option for mail.
So, As per your Question , Markup image facility provided bydefault by apple in Mail. so, i think you can't implement it programatically. but when user will open the mail from UIActivitycontroller from your application then user will get Markup feature with following above procedure. (But user have to manually do process to enable Markup feature)
You can also check video on youtube ,
How to markup and annotate an attachment in iOS 9
Reference link regarding markup feature,
ios-9-markup-annotate-email-attachments
I hope this info is helpful for you.

Presenting choices to user in iOS app

I am writing an iPhone app. My next step is to create a card object. I know how to do this theoretically, but my problem is coming from my lack of experience in Xcode.
This is my add item page
I want the user to specify a name and then choose an icon, either from the 3 most popular choices, another page of premade options, or take their own picture and use that.
Now, how do I show those choices in a way that the user can select one and I can collect their response? Right now, they are simply buttons, I can add my background image to them, but I don't know how to record their response. I would like it to show them their selection by adding that shadow around the box.
I'm not sure if a button is the best approach.
Also, I will need the same selection behavior for the image they take themselves, but I figure if I get the icon choices to work, I can figure out using a picture taken by the user.
Thanks for any help.
I would create button "Select image" below the uiimageview.
This button would present action sheet where you would have two options
a) select form existing
b) take a picture.
Then I would probably use Grid view to present the existing icons and UIImagePicker for taking pictures :)

iPad Photo Gallery Framework

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.

Resources