Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

how to set disclosure indicator for label #148

Open
appsird opened this issue Dec 11, 2016 · 0 comments
Open

how to set disclosure indicator for label #148

appsird opened this issue Dec 11, 2016 · 0 comments

Comments

@appsird
Copy link

appsird commented Dec 11, 2016

I define a label as follows:

struct Static {
    static let label = "label"
}

let row = FormRowDescriptor(tag: Static.label, type: .label, title: "my title")

For certain labels, I would like to add a disclosure indicator '>' at the end of the row.

I override the following method to determine which row was tapped:

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {

}

I then use a segue to bring up the appropriate view for the row. Thus, how can I add a disclosure indicator to an arbitrary label line.

I tried:

row.configuration.cell.appearance["accessoryType"] = UITableViewCellAccessoryType.disclosureIndicator as AnyObject

Though, this errors out. Thank you for reading, and appreciate any thoughts on this happen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant