Don’t enable drag and drop on iPhone as it isn’t helpful.

References #1072.
This commit is contained in:
Nicholas Riley 2018-01-06 13:28:28 -05:00
parent 4195ed1584
commit a37dbb25fc

View file

@ -86,8 +86,10 @@
self.storyTitlesTable.backgroundColor = UIColorFromRGB(0xf4f4f4);
self.storyTitlesTable.separatorColor = UIColorFromRGB(0xE9E8E4);
if (@available(iOS 11.0, *)) {
self.storyTitlesTable.dragDelegate = self;
self.storyTitlesTable.dragInteractionEnabled = YES;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
self.storyTitlesTable.dragDelegate = self;
self.storyTitlesTable.dragInteractionEnabled = YES;
}
}
self.view.backgroundColor = UIColorFromRGB(0xf4f4f4);