prime_reside_menu 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2I0MjBkNTc2ZWQzYjA3MzU2MmY3Y2M0N2U4NDU2OTU5NzRhZmZhMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGFiZDA1MmNhZTk0NDY0NWUzZTljNjcwYzc1ZTk5NzIzOTcwMTIxZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmU2NTMzYWVkMDIxMjZkOTA1ZDI5NDI1MzhkMWI4ODUzYzU2YWYyZmM4NGY0
|
10
|
+
NWI3MjlkODFlMGI0MTM3MWM5OWFiZmJhOTE5ZmMxNmE0MGM5NGU4M2RhOGYx
|
11
|
+
OTEzZWY3ZTU5NTI3NTFjZDllY2Q4NDg4YjY3M2Q5MDAwYjQyOGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzU1NjU0NTFmZmNiMzViNTJhMWRhMjc1ZjcxOWZmZmE5OWM4ZTZlNDQyOGFi
|
14
|
+
OWI0YmU4ZDIyMWM2YjgzZGIxN2FhMGQ0NDljOGYwMzJhMWE0ZWQ3MTcyYmUx
|
15
|
+
N2M4NDMwYjkzNTBmOTM1NGU1NTkzMjg2ZmRmMmU5M2RjOTI5M2I=
|
@@ -41,15 +41,16 @@ module PrimeResideMenu
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def menu_controller=(c)
|
44
|
-
|
44
|
+
@menu_controller_ref = prepare_controller(c)
|
45
|
+
self.setMenuViewController(@menu_controller_ref)
|
45
46
|
end
|
46
47
|
|
47
48
|
def content_controller=(c)
|
48
|
-
|
49
|
-
if should_reinit_content?(
|
50
|
-
self.setContentViewController
|
49
|
+
@content_controller_ref = prepare_controller(c)
|
50
|
+
if should_reinit_content?(@content_controller_ref)
|
51
|
+
self.setContentViewController(@content_controller_ref)
|
51
52
|
else
|
52
|
-
content_controller.viewControllers = [
|
53
|
+
content_controller.viewControllers = [@content_controller_ref]
|
53
54
|
end
|
54
55
|
hide_sidebar
|
55
56
|
end
|
@@ -65,7 +66,7 @@ module PrimeResideMenu
|
|
65
66
|
private
|
66
67
|
|
67
68
|
def should_reinit_content?(new_controller)
|
68
|
-
content_controller.
|
69
|
+
content_controller.blank? ||
|
69
70
|
content_controller.is_a?(MotionPrime::TabBarController) ||
|
70
71
|
new_controller.is_a?(MotionPrime::TabBarController)
|
71
72
|
end
|
@@ -80,7 +81,7 @@ module PrimeResideMenu
|
|
80
81
|
controller.navigation_controller = content_controller if controller.respond_to?(:navigation_controller)
|
81
82
|
controller.send(:on_screen_load) if controller.respond_to?(:on_screen_load)
|
82
83
|
end
|
83
|
-
controller
|
84
|
+
controller.strong_ref
|
84
85
|
end
|
85
86
|
end
|
86
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prime_reside_menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Haziev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|