mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-25 01:31:37 +08:00
Version 0.7.7: Slide to delete is no longer default.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
ProMotion (0.7.6)
|
||||
ProMotion (0.7.7)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module ProMotion
|
||||
VERSION = "0.7.6" unless defined?(ProMotion::VERSION)
|
||||
VERSION = "0.7.7" unless defined?(ProMotion::VERSION)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user