Jonathan Wareham
Jonathan Wareham

Reputation: 3397

Swipe to delete not working with left to right swipe

I have a strange problem with swipe-to-delete in my iPad app. I have a UITableView control hosted within a UIViewController. The UIViewController is hosted in the 'Master' pane of a UISplitViewController. I have implemented commitEditingStyle to get the swipe-to-delete function and this is working fine if I swipe from right to left I get the 'Delete' button appear. But when the app is in landscape mode left to right swipes do not get detected. In portrait mode it works fine.

Upvotes: 2

Views: 979

Answers (1)

Jonathan Wareham
Jonathan Wareham

Reputation: 3397

Found it was because I was setting presentsWithGesture to YES on my UISplitViewController - this affects the left-to-right swipes made when in landscape mode.

Upvotes: 2

Related Questions