I want to create an application which shows list of features when user taps on right navigation item. This 'Show list of features' screen will cover half of the iPhone screen with slide animation while hiding and showing it on screen. When user taps on any future from feature list it will navigate user to new screen which will have also have this 'show list of features' button as right navigation item instead of back button.
To create show list of features UI, can I use ContainerView in Xcode? ContainerView UI will be same for all the screens. How can I reuse the same containerView in multiple storyboards?
Thanks!
The Explore menu in the Apple App Store allows you to make a selection from a UITableView and then it segues to a new view while showing the previous selection at the top of the screen. It's the best example of mobile breadcrumbs I've ever seen. Here's what it looks like in action:
On this screen I click "Consumer Products" and that shows me the next screen. Without taking me out of the view.
You're able to press on any of the breadcrumbs and segue back to that view.
Can you please show me in Objective-C, how you would achieve a segue like this?
(The most important part of the segue is the breadcrumb functionality at the top of the screen.)
Thanks!
Rob, I've made very simple project, but hope it will give you an idea how you can achieve such effect
BreadCrumbsTable
I need to create below thing
Currently i'm using WYPopover , but I can't create the button since it's outside of the popover. Is there any existing solution out there ? Many thanks
Create a bigger popover UIView holding all your child elements (current popover + button) and make its background transparent or however you wish.
Popover-controller's are exclusively used in iPad. If you want to use in iPhone, you should create it in a custom way.
I am not familiar with the XYPopover in Github, but normally the custom created popover should be dismissed whenever the user taps any place in the screen. That is one of the key feature of the popovers.
Normally the custom popovers are build like, adding a hidden parent view and then the visible image of a popover frame on it.
You should to do the following,
Avoid dismissing the parent view on tap of parent-hidden-view.
Add a close button at the area where you want to show the close button, on top of the parent-hidden-view.
Capture the button click and dismiss the view (remove the view from superview)
How to customize your need
Creating custom popover view is not a big task. It will take maxim one day, try it your self.
One Parent view with clear color
One background image of a popover frame.
View-inside popover (this needs to be customized for UIPopover also).
Close button.
I'm just learning iOS, and I want to create an App which will have a few buttons at the bottom of the screen.
What I'm a bit unsure about is, I know you can use a tab bar down there, but is that what you should always use when you want a button at the bottom of the screen? or there's no need to use a tab bar, and you can just put a normal button down there?
According to apple's documentation, UITabBar is a control used for displaying views.
A tab bar is a control, usually appearing across the bottom of the screen in the context of a tab bar controller, for giving the user one-tap, modal access to a set of views in an app.
If your goal with this "button" is to display other views, then you should use UITabBar component.
But if you are just searching for a "usual button", then you should use UIButton component.
A tab bar is expected to allow the user to switch between, you know, tabs; the same bar appears at the bottom of each page, and it allows you to switch between them. If that describes what you are trying to accomplish, then it would be appropriate. If your button is meant for some different purpose, then a tab bar might be misleading.
A tab bar (class UITabBar) is usually part of a tab bar controller (class UITabBarController). A button (UIButton is simply a way to respond to a tap or other actions within the button.
You want to use a tab bar and tab bar controller when you need to switch between different views and view controllers in your application. For example the Music app on your iPhone has a tab bar controller that switches between Artist, Playlist, Album, etc. These are different screens, or screens that look the same but show your music organized in a different way.
If all you want is to respond to a button, for example to print out to the console or show a message to the user that says "Hey, you've tapped the button", then a UIButton is what you need.
Also, a UIButton can have many actions, Touch Up Inside is probably the one you are looking for. This one will ensure the button has an action called if the user began a tap on the button, and let go of their finger while still on top of the button.
To summarize things:
Use a UIButton if you simply want to respond to an action, and the most common action you will connect to the button is Touch Up Inside.
Use a UITabBarController to have a way to switch between different views and view controllers.
I have an iPad application with a SplitViewController. I am hiding the left hand navigation panel (UITableView). It can be viewed by swiping in from the left of the screen. I would like to display a little "grab tab" on the left when it is hidden to give the user a visual indication that there is something there that they can view. I am just not sure how to go about this. Can someone point me in the right direction?
Solution 1
Well, then you will have to put create a view in which your rootViewController(leftView) will reside along with a custom Button with the handle image and you can remove or hide the customButton when your root view is visible and show when your root view is not visible.
Also, you will have to give this view(customButton + leftview) as argument to your splitview during allocation.
Solution 2
You can simply add a customButton to the splitview at the left side and bring it to the front by using [parentview bringSubviewToFront:subview] when rootview is not visible and remove it when it is clicked or swiped according to your functionality.
Hope This Helps You.