UIImagePickerController - Retake button on custom Overlay (Swift) - ios

I am trying to implement a custom cameraOverlayView with a UIImagePickerController. I manage to hide the button and have my own interface , but a custom interface blocks the editing screen with the Preview option and the Retake. I noticed on some older posts adding two Notifications for "_UIImagePickerControllerUserDidCaptureItem", "_UIImagePickerControllerUserDidRejectItem" and then adding and removing the overlay would fix the issue. But with Swift 3 I cannot seem to find how to access these notifications and the delegate from UIImagePickerController is very limited. Is there another way ?

It seems like you cannot access the "Retake" event , so there is a need to create also a custom "Edit" screen. I have on the same customCameraOverlay , buttons for "Retake" and "Use it". So when the user stops capturing I hide the record and the cancel button and I present the retake and use it options, adding also a preview. So when the user clicks on retake I reverse the buttons again and remove the preview View. Likewise on "Use it" didfinishcapturing is being called

Related

How to create a group in the UIAlertController

I have implemented an UIAlertController (currently using the XLActionController) with the look and feel as the builtin menu from the iOS Contacts app (see pictures below).
I want to add a submenu which "folds out" just like in the Contacts app (see picture 2)
The builtin Contacts app (see pictures) has a menu which contains a "group" which opens (animates) when clicked - revealing the siblings as showin in the second picture. When the header is clicked it closes (animates) and returns like shows in the first picture. (The below can be achieved installing a supported app like Skype for Business)
Is this possible to build using either the default UIAlertController or eg XLActionController
This answer does not solve your problem but it may help you find a solution.
You need to build a custom view controller transitions and presentations. Your viewController must be a subclass of UIPresentationController. Have a look at this tutorial.
UIPresentationController Tutorial
You can use also a simple UIView which contains a UITableView that you animate upwards/downwards. Have a look at this tutorial
How to Create a Slide-In Menu

Ios menu related issue

Since I'm new to Ios , What i wanted to is given demonstration bellow
That means, on over the image and some text will remain static but , bellow a sliding menu would work like the gif.
if I tap on some menu item it will slide to bring related menu. if I press on the cross it will act back ward.
I don't even know what does it call. I tried with customsegue and transitions. but no luck . also tried with transparent show modally. it works for one view but not for backword (i.e. unwinding) . it get darker.
You can try using UIPageController for pagination effect.

Popup notification box

Im trying to create a popup style notification, which is shown at the top of the screen (using a basic animation). The notification is going to be a simple form with a submit button.
Im trying to figure out how to go about this, and what are the best options i have. I've found this popup library: https://www.cocoacontrols.com/controls/cqmfloatingcontroller
What are the best options for 1. creating the popup and 2. animating to popup
If this is something that you will be reusing a lot, it might be worth subclassing UIAlertView, as you can then automatically use all "popup" methods provided by it,and by customizing it's view you can get the appearance you want.

iOS system icons and custom buttons

i'm working on my first app and the problem a have is that the application interface design is quite customised, (even though it is a tab bar based app). now in one of the view controllers i need to present the user with the print interaction controller to print images. the thing is i don't use a navigation bar or a toolbar system or otherwise. i have managed to attach a target action method to a custom button. however, apple states that the printing interface should be presented by a system button (the one that looks like an arrow, kind of). question is: is there any way of putting a system icon inside a button that is not inside a (bar)?, or would it be ok to somehow tell the user (with an overlay or something) that tapping the button i'm using (the button is a red ribbon coming down from a picture frame) they will get the printing options?
Apple says:
Although the print button can be any
custom button, it is recommended that
you use the system item-action button
shown in Figure 6-1.
I'd interpret that to mean that you can use your own button if you want to.
You might want to consider having a toolbar at the top of the view for this particular tab. Just appearing on this tab. This would make the issue moot.
You could also, have the tool bar "slide in" and "slide out" from the top to provide access to this (and other?) actions. A single or double tap could instigate such an action.
Unfortunately, Apple doesn't expose the images for the custom bar button items in any reasonable manner. If you'd like access to them, I suggest using the bug reporter system at Apple's developer site to request that.

Facebook iPhone application: root view animation style

I'm working on an application that has the same layout as Facebook. I have several icons on the home screen and would like to to make my viewController appear like when one of the icons are tapped.
Any idea on how it works?
Are you asking how to make a view appear in the standard way when the icon is tapped? ie how to make a button which is an image
Or
are you asking how to make the view expand out like they do in the facebook app?
If your are asking the first one, you need to drag on a button in interface builder, then select it, in the button attributes window, in the first tab, in the 'type' drop-down (which is default to rounded rect), choose custom. then set either the image or background to your image (see whatever looks better). You can then link it up like a normal button with an IBAction.
If you are asking the second question, how do you make the views expand out and shrink back, then check out my tutorial:
How to make expanding/shrinking views on iPhone SDK
Adam

Resources