ProMotion 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,15 @@
1
1
  module ProMotion
2
- class NavigationController < UINavigationController
3
- def shouldAutorotate
4
- visibleViewController.shouldAutorotate
5
- end
6
- end
2
+ class NavigationController < UINavigationController
3
+ def shouldAutorotate
4
+ visibleViewController.shouldAutorotate
5
+ end
6
+
7
+ def supportedInterfaceOrientations
8
+ visibleViewController.supportedInterfaceOrientations
9
+ end
10
+
11
+ def preferredInterfaceOrientationForPresentation
12
+ visibleViewController.preferredInterfaceOrientationForPresentation
13
+ end
14
+ end
7
15
  end
@@ -16,6 +16,7 @@ module ProMotion
16
16
 
17
17
  # Workaround for now. Will display a NoMethodError, but ignore.
18
18
  super rescue true
19
+ PM.logger.info "You can ignore the NoMethodError -- this is a RubyMotion bug that should be fixed soon."
19
20
  end
20
21
 
21
22
  def applicationWillTerminate(application)
@@ -50,6 +50,7 @@ module ProMotion
50
50
 
51
51
  def close_screen(args = {})
52
52
  args ||= {}
53
+ args = { sender: args } unless args.is_a?(Hash)
53
54
  args[:animated] ||= true
54
55
 
55
56
  if self.modal?
@@ -19,6 +19,13 @@ module ProMotion
19
19
 
20
20
  s
21
21
  end
22
+
23
+ # emulate the ProMotion table update for formotion
24
+ def update_table_data
25
+ self.form = table_data
26
+ self.form.controller = self
27
+ self.tableView.reloadData
28
+ end
22
29
 
23
30
  def viewDidLoad
24
31
  super
@@ -1,3 +1,3 @@
1
1
  module ProMotion
2
- VERSION = "0.7.2" unless defined?(ProMotion::VERSION)
2
+ VERSION = "0.7.3" unless defined?(ProMotion::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ProMotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-04 00:00:00.000000000 Z
14
+ date: 2013-06-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: motion-stump