How to mimic iOS Control Center behaviour - ios

I'd like to mimic the iOS Control Center behaviour. I have a button in the bottom of my screen, and I'd like to reveal a second view controller as the user slides from that button to the top.
The behaviour is also similiar to the iOS and the Android status bar. What's the best solution to achieve this?

Related

How to show stickers (or other views) under UIInputAccessoryView on iOS?

I'm building a chat interface and I'm curious how apps like Telegram and iMessage achieve the following:
There's an always-on input bar that stays above the keyboard (or at the bottom of the screen if there's no keyboard). This is most likely a UIInputAccessoryView, and I've got this implemented.
There's a sticker button on the bar that, when tapped, dismisses the keyboard AND keeps the input bar in-place AND reveals another view under it that is some other view (containing stickers, etc.) The input bar basically doesn't move at all. The animation is exactly like the keyboard going away, revealing the view that appears to have always been there.
If the keyboard is hidden, tapping on the sticker button does the same as 2. What's really cool is that the sticker view is always the same height as the keyboard - and note that keyboards of different languages can be of different height (autocomplete bar), and at least in Telegram's case it can always find the right height.
Any pointer to how to achieve this is appreciated!

iOS: hide/disable new iOS bottom bar

There is anyway to hide or disable the new iOS 9 bottom bar on iPad?
image: iOS bottom bar
You can use the following property on TextFields and TextAreas to hide this new actions bar:
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TextArea-property-showUndoRedoActions
Isn't that just the keyboard toolbar? I'm guessing you're running it on the iOS simulator which often errors and doesn't show the keyboard but will still show the toolbar. If you hide the keyboard (blur all text input capable UI elements) the toolbar hides as well.
According to the iOS guide the toolbar "Can hide when the keyboard appears, the user makes a gesture, or when the containing view controller transitions to a vertically compact environment." So, A real device test would demonstrate the behavior. Reference https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/Bars.html#//apple_ref/doc/uid/TP40006556-CH12-SW4

Mimic iOS 7's Home Screen Search Bar on my app

I want to implement a search bar in my app which mimics the one on iOS 7's home screen. When I pull down, I want it to bounce down while having enough room on top for the status bar, and I want my current view to move down to make room for the search bar as well. How should I go about with this?
My current thought is to make a new UIView class, add a UISearchBar to it and add that view to my current view (So that I can scroll down to display the search bar). But is there a better way to do this?
This is how it looks like on the iPhone home screen
http://static.trustedreviews.com/94/000028d08/1a0e/Spotlight-Search.jpg
As you said you could create a UIView with a search bar in it. Add it to your main view and set your searchView origin.y to be less than 0 so it will hide below the top of the screen.
Next you could use a UIPanGestureRecognizer to track the dragging of your finger and update the origin.y of your searchView while you drag..

iOS 7 Pullable view

I'm looking into implementing a subview in a view controller that will sit as a bottom bar of the screen until the user holds down and pulls it up to the top of the window to cover the whole screen.
What Google Maps does in Android/iOS with clicking on a pin and pulling the bottom bar up to see details is exactly what I want to implement.
Here's what I'm talking about. I'm not sure what the best way is to implement this.
I can either have an animation that is hardcoded when the bar is clicked causing the view to expands up and cover 3/4 of the screen and anchors there and 1/4 of the screen will be a map and once the map is clicked will drop the view back down. Or have the user drag and pull up the view and pull it back dock to anchor.
You should have look at demo code from following github link which have implemented pullable behaviour similar to the Notification Center in iOS:
https://github.com/crocodella/PullableView

Tab bar issue for iPad app

I'd like to display what looks like a vertical tab bar at left side as in, for example, Twitter app for iPad:
Is that a UISplitViewController with a UITabBar within its left side?
Is it a tab bar with vertical orientation (if that is possible, I couldn't find such property in UITabBar class...)?
Is it a custom tabBar-like control?
I've read some posts dealing with this (for instance, iOS vertical tab bar), that were written some time ago, does this issue remain the same?
Thanks!
Custom tabbar controls are available. I think this will fit with your requirements.

Resources