i want to add a drop down list For e.g:
I need two menus like chats and soups.
In chat i have to display some chat items
similarly in soup items i need to display some soup items.
While selecting the chat menu, the soup menu items should hidden and soup menu bar to be pushed down displayed with an right arrow similarly when i select soup menu chat menu items should hidden and chat menu bar to be pushed up with a right arrow. How can i add this in using UITableView ..
You could use a UISegmentedControl. The user can switch between different tableViews, depending on which segment is selected. The selected tableViewController is displayed inside a containerView.
This is what I've been doing in a Composite Gospel app:
I have used the subtable master which acts as drop down in table view itself.attached link below
https://github.com/ajkoshy7/SubTable
Related
I have an app that implement only two main features - a form to create a table entry and another to look it up with entry screen as login screen. What is the best way to implement the screen flow navigation to these different features? Possible options:
Have a new screen after login screen to display a menu to navigate to form or to search screen - just one more screen for navigation purpose is not very intuitive
Use tab bar controller - but usually tab bar has minimum of 3 items, in my case its only two
Any other recommendations?
One optimal option could be,
Post login there should only screen which shows a list of entries with a search bar at the top
In the search bar, you can search Entry - Display the results based on your search query
Display the selected item details on based on selection
In the navigation bar, you can show one + bar button item to add an entry
On tapping the + item -> Create Entry Form -> Confirmation Screen
It should look like,
I have a UITabBarController setup and everything is working as intended. However, I also have enough items to allow for a "More" tab to display.
When I "Edit" the items, I can replace all 4 tab items, but, but I'd like to make the first item not rearrangeable or replaceable. Like the "More" tab item is -- leaving only 3 items editable.
Any ideas how to do that?
Set the customizableViewControllers to an array of view controllers that does not include the first view controller.
I have couple of sections in UITableView.
I make a slide-out menu with some items that are the names of sections in table.
How to show the section respectively with item tapped in menu.
Thanks!
In your UITableView controller you need to reset the setFrontViewController for navigate relative controller after tapped item.
I want to show a ViewController where it has two UIViews, just like finder in Mac.
The left view contains a tableview with items.When user selects an item the right view displays tableView with related data.
So the next requirement is that which ever tableView is shown on the right side is editable for selection of sub items in rows and once the editing is done it should keep its state, so that on selecting the second item and re-selecting the first item, the tableView should show all the selected sub items.
You can refer - https://www.raywenderlich.com/94443/uisplitviewcontroller-tutorial-getting-started
That is called splitviewcontroller or master detail controller
I have a ViewController (TopMenuViewController) in my storyboard that has my app logo and a button that shows a dropdown list when I click on it, this dropdown list has button (logout, about, settings ....).
All the screens in my application has this top menu, so I decided to create a ViewController for this top menu and add a container in all the other screens that embed the TopMenuViewController.
My Top menu view controller has a height 53 and when the dropdown list is shown the height will be 227
I embed this Top menu view controller into all my viewcontrollers, for example my Main Screen View Controller:
I added the following constraints to this container:
Now, the issue is I'm not be able to click on any button on this dropdown list because the constraint height is 53, and if I change it to 227, I will not be able to click on the buttons that are under this dropdown list.
What is the best way to create a reusable top menu with a dropdown list.