Ios menu related issue - ios

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.

Related

"Print" & "Cancel" disappeared from Printer Options in UIActivityViewController

The buttons are still there and function fine, however as you can see they are completely invisible. Adjusting font colors and navigation bar colors had no effect. I have been trying to resolve this for months and despite reading Apple's documentation, I am unable to even see where you would change what I assumed to be a system wide function.
So to help narrow down this issue I created a simple navigation controller with a print button. If I put these both on the Login storyboard (the first storyboard) it works perfectly fine. If I put it on Main.storyboard (the second storyboard) it doesn't work.
If I change my project settings to make Main.storyboard the first storyboard it works. Leading me to believe the issue is in my FirstViewController.
You can set the color of the print and cancel button
UIBarButtonItem.appearance(whenContainedInInstancesOf: [UIToolbar.self]).tintColor = UIColor.green
After narrowing down the problem to the first view controller I discovered the tint was set to Clear Color (ie Alpha is 0). Fixing this resolved the problem in the rest of the app. I am surprised a setting in a view can propogate to the rest of the app and overwrite all of the other views in the process. Perhaps apple set the first view to determine the colors for system pop ups etc.

How do I make the elements in my UIView responsive?

My goal is to create an alert that has three text fields, one taller than the others, and an image that, when tapped, allows the user to choose a picture to replace a set default one.
After unsuccessfully searching for a library for this, I decided to create my own alert by placing a UIView off the screen and, when prompted by a button, would zoom onto the screen; it consists of all the elements I require.
When I run the application, the view pops up correctly, but none of the elements on the view are responding to touch. I've checked that isUserInteractionEnabled for everything is turned on.
What's also odd is that when I keep the view on the screen (instead of placing it some distance away on Storyboard), all the elements work fine.
I'm assuming it had something to do with the animation. I tested it with a fade in instead of a displacement, and the result was the same - the elements were unresponsive.
In order for your elements to be responsive you have to link the action of you clicking them to your view's code. You can do this in a non-programmatic manner by ctrl-clicking your element on story-views and then dragging to the view controller. Then choose action instead of outlet, and choose when the action you want will be triggered (bottom part). Then insert your code in the viewController.
So I figured it out. I used the debug view hierarchy and saw that the alert was behind the elements behind it, even though it was still being shown (for some reason). I changed the zIndex of the UIView and it worked!

Custom bar button item not detecting touch correctly

I have created two custom buttons in the nav bar's right bar button using storyboard like so:
Below is how they look. I've added background colours to the buttons for easy viewing of detectable area.
The problem I am having is that the map button on the right is only detecting touch events on the left side of the button. The left button is detecting touch events fine. What's even stranger is that it seems to work fine in the simulator, but not on devices. I've tried on multiple devices and they all have the same issue. This is driving me crazy.... been at it all day. Please help!
After banging my head against the wall for two days with this one, I finally realised that as of Xcode 7 you can finally just drag multiple UIBarButtonItems to the UINavigationItem directly in Interface Builder. Creating the two buttons this way instead of the previous method fixed the issue.

Unusually cool looking tab bar setup within a rootviewcontroller of a UISplitView

The ABC (Australian Broadcasting Corporation) iView app for iPad, has great looking tab like setup within a rootViewController of a UISplitView.
The tabs named "Browse/Watch/Listen" are particularly interesting are they simulated or real tabs?
It's unlike any UITabBar I've seen around in iPad apps.
Does anyone know how something like that is possible?
The round rect button in custom mode will be transparent and any png image will maintain in transparencies.
3 or more buttons with transparent images would be the way to go. A different color for when they are selected and your all set. You could also make them look like they are overlapping with images that continue the button next to it.
With the iOS devices it is more about appearance and less about the underlying functionality.
This is a custom control, they made themselves from scratch.
Fortunately for you, you don't need to make it from scratch. :)
There's a lot of open source component that does just this, just like these ones.
Those tabs look and feel like 3 UIButtons. Notice how the UI highlight acts when touching the buttons, and the action is only triggered on touchUpInside.
The tab content is probably a UITableView which gets refreshed when switching tabs.

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