Asking for your opinions and best practices here about the use (or not) of a disclosure indicator arrow within a UITableView cell where selecting that tableview cell will launch a popover to choose the value of that option in that cell.
On the one hand it makes sense to have the disclosure indicator to let you know selecting that will bring up something else, but on the other hand, the right-pointing arrow doesn't really navigate to a new view like it would on the iPhone.
Ideas, thoughts?
Thank you.
As tapping the cell does not make a navigation, don't use the disclosure indicator. You can use a custom button designed according to requirement (may be having a down-arrow image,for example) . While tapping this custom button, bring up the pop-over.
Apparently Apple prefers to use a disclosure indicator even if the action if just to show a popover.
An example of this is in the General >'Date & Time' section of the settings app. Turn off set date automatically, then tap on the "Set Date & Time" cell. It has a disclosure indicator but displays a popover when tapped.
Related
I have a UI with tableview and button at the buttom like this.
when user click the three dotes, It will show an overlay/overlap view that show several button option to choose.
The button inside cell (Report) is tapable (clickable), but button outside the cell (Edit and Delete) cannot be clicked. Anyone can help? Thank you.
Here is the XIB.
I endup using UIApplication.shared.keyWindow (to be exact, I use Popover library) to solve this problem.
Im extremely new to iOS and i have a requirement where in table view, each cell displays list of stores near by and also an info button at the end which shows the timings of the stores. Info accessory button like this and my requirement is to display callout alert as below on tap of that button.
Do I need to create custom view of small size and display that view every time when user taps on that? Please advice how to achieve this in Swift.
I would like to set custom icons for the UITableView delete icon for the table's edit mode.
I found a way of doing it by setting UITableViewCellEditingStyleNone in editingStyleForRowAtIndexPath method ant then adding my custom button view in the place where that icon should be by subclassing UITableViewCell. source (enter link description here)
I set up a delegate to get the tap even from that button, but with this approach when I tap on this custom button I can't get the cell to slide to the left to reveal red delete button (see the image). So this way, I can just delete the cell by taping only once.
What I need is to mimic the same standard deletion flow with two taps(first on the left delete icon, second on the delete button the slides to the left) but also have my custom icon for the delete on the right.
Is this possible to do?
Any kind of help is highly appreciated.
For fully customize UITableViewcell https://github.com/CEWendel/SWTableViewCell
It will Help you a lot
I have a custom UITableCellView (subclass). I want it to have disclosure chevron on the right side. But I want to hook a custom action to clicking on that indicator, not a storyboard segue.
I can think of two possible paths, but I don't know how to complete either:
1) Set the cell accessory as Detail in the storyboard. In that case, I can use tableView:accessoryButtonTappedForRowWithIndexPath:. But I would need to figure out how to change the presentation so it wasn't the "circle i" thing, but rather the indicator chevron.
2) Set the cell accessory as Disclosure Indicator in the storyboard. When I do that, I get the presentation I want, but the tableView:accessoryButtonTappedForRowWithIndexPath: doesn't fire. So I need to find some other mechanism to hook an action to it being tapped.
(Aside: Let's avoid the "You shouldn't do that" answers. Let's assume I know what I'm doing, even if I don't. My question wasn't "Should I do this?")
I am learning about TableViews in Xcode right now and I am having trouble finding some info on TableViewCell accessories.
My goal is to have a MasterTableView and a SubTableView. When a MasterTableCell is tapped to take the user to the SubTableView. But I'm stuck with something simple like showing a '>' on the right side of the cell to show that it has a SubTableView.
Do I need to design my own button? I thought there was a navigation image already available to me in the UI storyboard maker but it won't let me drag and use it in my custom cell I'm making.
Any thoughts or links to documentation would be great. I've looked in the developer library and all it tells me is that it is possible, not how to do it.
Thank you in advance.
If you are using a Prototype Cell in the Storyboard, just set the "Accessory" type in the Attributes inspector to "Disclosure Indicator".
If you create the cell programmatically, set
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
From the documentation:
UITableViewCellAccessoryDisclosureIndicator
The cell has an accessory
control shaped like a chevron. This control indicates that tapping the
cell triggers a push action. The control does not track touches.