Version 0.7.7: Slide to delete is no longer default.

This commit is contained in:
Jamon Holmgren
2013-07-10 11:19:27 -07:00
parent 0f6b047345
commit 4ddd67c570
4 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ProMotion (0.7.6)
ProMotion (0.7.7)
GEM
remote: https://rubygems.org/

View File

@@ -133,7 +133,7 @@ Create a Gemfile and add the following lines:
```ruby
source 'https://rubygems.org'
gem "ProMotion", "~> 0.7.5"
gem "ProMotion", "~> 0.7.7"
```
Run `bundle install` in Terminal to install ProMotion.

View File

@@ -133,6 +133,10 @@ module ProMotion
trigger_action(cell[:action], cell[:arguments]) if cell[:action]
end
def tableView(table_view, editingStyleForRowAtIndexPath: index_path)
UITableViewCellEditingStyleInsert
end
def tableView(tableView, commitEditingStyle:editing_style, forRowAtIndexPath:index_path)
if editing_style == UITableViewCellEditingStyleDelete
delete_cell(index_path)

View File

@@ -1,3 +1,3 @@
module ProMotion
VERSION = "0.7.6" unless defined?(ProMotion::VERSION)
VERSION = "0.7.7" unless defined?(ProMotion::VERSION)
end