7

I have a situation in which I am putting the UITableView in editing mode, and when it is not in editing mode, it has to perform tableview: didSelectRowAtIndexPath: and has to be pushed on a UINAvigationController.

Now the problem is that how can I check that whether the UITableView is in editing mode so that it should not be pushed over UINavigationController.

Hassam
  • 253
  • 6
  • 16

3 Answers3

12

editing

A Boolean value that determines whether the receiver is in editing mode.

@property(nonatomic, getter=isEditing) BOOL editing

i.e. [tableView isEditing] == YES

Alexander
  • 8,117
  • 1
  • 35
  • 46
2

There is a property editing on your tableView, check if it's YES or NO.

Mat
  • 7,613
  • 4
  • 40
  • 56
1

check this

if (yourtableview.isEditing == YES) { //do something }

Piyush Kashyap
  • 1,965
  • 1
  • 14
  • 16