81 Commits

Author SHA1 Message Date
Steve Ross
5e11714aa6 Merge branch 'version-2.3' of https://github.com/clearsightstudio/ProMotion into search_with
Conflicts:
	.travis.yml
	Rakefile
2015-03-03 19:28:01 -08:00
Steve Ross
2b7e8d6617 Changes custom table view search to pass action to table data.
- Instead of passing the controller into the table data,
  pass a proc bound in the context of the controller.
  Thanks @jasonholmgren.

- Remove params as second argument to search -- the params will
  have been resolved when the table_data is allocated.

- Which one wins: If the user passes more than one proc or symbol
  using the params hash, the behavior is undefined, but the last
  one evaluated is the one that becomes the custom action. Because
  hashes are not necessarily ordered sets, order is meaningless
  in this context.
2015-02-26 10:52:36 -08:00
Steve Ross
e56e80b3a4 Added custom search methods 2015-02-24 15:32:19 -08:00
Ryan Linton
590790af2b Resolve conflicts 2015-01-26 11:07:45 -08:00
Mark Rickert
2109b2dfbb Adds capability for table_footer_view
just like table_header_view so i merged the two constructors into an each loop.
2015-01-24 11:29:58 -05:00
Ryan Linton
7958589659 Merge branch 'version-2.3' of github.com:clearsightstudio/ProMotion into version-2.3
* 'version-2.3' of github.com:clearsightstudio/ProMotion:
  Version 2.2.1
  snake case variables for consistency.
  added tests
  Fixes issue with auto-detected links not opening.
  implemented workaround for image autorotate crash #562
  Write spec to ensure on_init is not used in the future
  Cleanup screen_setup
  Disabled another Travis test
  Disabled another test. This is getting monotonous
  More Travis skipped tests
  Use Travis env variables instead
  Disable failing test for Travis
  Fix: wrong cell detection problem in search_result_table of longpressable TableScreen.
  No version bump yet
  Specs updated for iOS 7 and iOS 8
  Resolving iOS 7 errors
  Updated splitview to iOS 8 compatibility
2015-01-23 09:52:24 -08:00
Ryan Linton
7f4920246a Merge branch 'feature/tab-bar-item-props' into version-2.3
* feature/tab-bar-item-props:
  Add totally awesome spec which verifies that the image inset feature works
  Add image inset support for tab bar item
2015-01-23 09:51:02 -08:00
Ryan Linton
2f1a4f6540 Add totally awesome spec which verifies that the image inset feature works 2015-01-22 16:25:50 -08:00
Jamon Holmgren
af9977adfa Merge branch 'master' into version-2.3 2015-01-21 19:34:27 -08:00
Jamon Holmgren
99415b6da0 Merge pull request #599 from ryanlntn/fix/webscreen-on_init
Don't use on_init within WebScreen
2015-01-21 18:33:47 -08:00
Ryan Linton
90a82d19d4 Write spec to ensure on_init is not used in the future 2015-01-21 13:56:06 -08:00
Ryan Linton
7a697860fa Merge branch 'header_will_display' into version-2.3
* header_will_display:
  Change will_display_header to header_will_display
  Adds header_will_display method to PM::TableScreen
2015-01-21 11:39:55 -08:00
Ryan Linton
9ffbdd8edd Merge branch 'feature/navbarbutton-class-method' into version-2.3
* feature/navbarbutton-class-method:
  implemented nav_bar_button class method RE #272
2015-01-21 11:37:27 -08:00
Ryan Linton
a45bab116d Merge branch 'add-tab-feature' into version-2.3
* add-tab-feature:
  handles didSelecteViewController; raises on_tab_selected
2015-01-21 11:35:07 -08:00
Jamon Holmgren
a607192e94 Specs updated for iOS 7 and iOS 8 2015-01-14 10:14:26 -08:00
Jamon Holmgren
050ad594c9 Resolving iOS 7 errors 2015-01-14 09:43:26 -08:00
Mark Rickert
f46d7c53c1 Allow setting of multiple nav bar buttons instead of just one left an one right. 2014-12-10 16:33:59 -07:00
David Larrabee
1933f5293e handles didSelecteViewController; raises on_tab_selected 2014-12-10 18:26:26 -05:00
Mark Rickert
5590954499 Change will_display_header to header_will_display 2014-12-08 12:11:33 -07:00
Mark Rickert
93644e9214 Fix merge conflict & merge branch 'master' into header_will_display
* master: (21 commits)
  Version 2.2.0
  Refactored a little
  Auto-hide the toolbar when passed nil or false.
  table view auto size row height functionality
  Fixes issue #572
  Add longpressable example table screen to demo app.
  Implement @silasjmatson's idea about moving move_cell into promotion_table_data
  Allow the user to restrict the cell's movement within a section.
  Fix failing tests.
  Moar specs! 🙀
  Change edit? to edit_mode?
  Make cell_moved on_cell_moved to conform to on_cell_deleted.
  Fix true|false bug.
  Tests for moveable cells.
  Initial moveable cells functionality.
  Scroll the table to show the refresh control unless the user initiates the refresh manually.
  Version 2.1.0 + README update
  Added on_load and on_styled hooks for UIViews and on_reuse for UITableViewCells
  Make second param a hash instead of just the animation.
  Allow screens to choose their status bar style.
  ...

Conflicts:
	app/test_screens/test_table_screen.rb
2014-12-08 12:05:36 -07:00
Kevin VanGelder
bf7930248c implemented nav_bar_button class method RE #272 2014-12-05 14:57:05 -08:00
Jamon Holmgren
bd514d72a1 Fixed conflicts. 2014-12-05 10:53:48 -08:00
Jamon Holmgren
74991cced7 Fix conflicts, bring up to date with master 2014-12-05 10:32:45 -08:00
Jamon Holmgren
9e01107863 Merge pull request #567 from clearsightstudio/feature/views
Added on_load and on_styled hooks for UIViews
2014-12-05 10:20:43 -08:00
Jamon Holmgren
f1977e208f Merge pull request #556 from clearsightstudio/tableview-headerview
Allow the user to set a custom table_view header view.
2014-12-05 10:14:11 -08:00
Carlin Isaacson
1178a39356 table view auto size row height functionality 2014-11-25 11:25:27 -08:00
Mark Rickert
6f8d2ea573 Add longpressable example table screen to demo app. 2014-11-21 18:57:26 -08:00
Mark Rickert
d652b00c13 Allow the user to restrict the cell's movement within a section. 2014-11-20 15:01:28 -08:00
Mark Rickert
053e24e7c3 Fix failing tests. 2014-11-20 14:29:03 -08:00
Mark Rickert
3e75b50620 Moar specs! 🙀 2014-11-20 14:22:04 -08:00
Mark Rickert
9b4798eef1 Make cell_moved on_cell_moved to conform to on_cell_deleted.
Also checks for the method and warns the user.
2014-11-20 13:50:17 -08:00
Mark Rickert
03ffa5b257 Initial moveable cells functionality. 2014-11-20 13:30:16 -08:00
Jamon Holmgren
131ddc761a Added on_load and on_styled hooks for UIViews and on_reuse for UITableViewCells 2014-11-17 19:45:23 -08:00
Mark Rickert
b624952358 Adds header_will_display method to PM::TableScreen
If defined in your subclass, it will call:

header_will_display, header_will_display(view) or header_will_display(view, section)

This is so that you can modofy the view of a header before it is displayed.
2014-11-10 14:35:20 -08:00
Leon Kim
1c89203a32 Fixes #547, enable logging in test mode, fixed web content error and
updated RubyMotion version
2014-10-31 11:05:28 -07:00
Mark Rickert
c2a49050e0 Allow the user to set a custom table_view header view. 2014-10-13 20:46:24 -07:00
Jamon Holmgren
6670898bd0 Extensive work on tests 2014-10-11 12:57:23 -07:00
Mark Rickert
94e5ed103f Passing tests for index_path updating of tables. 2014-09-13 17:47:25 -05:00
Ryan Linton
7d8a59c79a Move states into constant array 2014-08-22 14:09:06 -07:00
Ryan Linton
e291e2c5d1 Dedup the functional screens 2014-08-22 13:36:41 -07:00
Mark Rickert
7d8377debd Fixes issue 524.
You can pass a string or UIImage instance to title_image
2014-08-12 11:54:24 -04:00
Jamon Holmgren
9de2c7d110 Merge pull request #490 from jonmorehouse/on_back
Add in popViewControllerAnimated subclass method.
2014-08-06 22:09:29 -07:00
Mark Rickert
cb885a1524 Fixes some test build errors. 2014-08-06 14:59:00 -04:00
Mark Rickert
b8589342f2 Update index_path feature to check arity of the implemented action method
And send the parameters accordingly.
2014-08-06 14:52:02 -04:00
Mark Rickert
4c0fac48a0 Fixes runtime crash when using the indexable table module and a section title is nil 2014-07-27 12:59:15 -04:00
Jon Morehouse
026dee77e5 Add in popViewControllerAnimated subclass method.
Add in tests for navigation controller back patch. on_back method now added for screens
2014-06-29 17:49:00 -07:00
Jon Morehouse
6964315409 Add in tests for instance based navigation controller functionality 2014-06-29 15:44:13 -07:00
Jamon Holmgren
f2c5609009 Deprecated system_icon and icon for tabs and replaced with system_item and item. 2014-06-21 22:21:50 -07:00
Jamon Holmgren
d0f6883fce Merge pull request #470 from clearsightstudio/refactor/on_load
Added load_view, moved on_load where it should be.
2014-06-06 08:23:21 -07:00
Jamon Holmgren
a0aa348a15 Merge pull request #468 from clearsightstudio/refactor/deprecation_warnings
Refactor/deprecation warnings
2014-06-05 23:25:02 -07:00