accessory action segue (UITableViewController)

后端 未结 5 1789
甜味超标
甜味超标 2021-02-01 07:10

I\'m trying to make segue via IB, that switching views when pressed cell accessory in tableView.

Images from my IB:

1.I\'m dragging from cell of tableviewcontrol

5条回答
  •  野性不改
    2021-02-01 07:34

    I just ran into the same problem. Works fine on iOS 6, crashes on 5.1.

    The way I solved it is by using a standard UITableViewCell and creating the accessory button out of a UIButton, on which I put a segue.

提交回复
热议问题