I'm new to iOS. I had 2 Table View Controllers and I want user to click on 1 cell to navigate to the other Controllers.
However here you can see the sign ">" next to the item, same as in Settings app in iOS 8. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewAndDataModel/TableViewAndDataModel.html
But I cannot add Navigation Item to a cell and no matter what segue I use the '>' doesn't show up.
Any idea?
That arrow isn't a UINavigationItem
; it's a UITableViewCellAccessoryDisclosureIndicator
.
To add that UITableViewCell.AccessoryType.disclosureIndicator
"arrow" to your cell's accessory view, add this line:
cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
And then to perform a specific action when that accessory view is tapped, implement tableView:accessoryButtonTappedForRowWithIndexPath:
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With