Class: ProMotion::FormotionScreen
- Inherits:
-
Formotion::FormController
- Object
- Formotion::FormController
- ProMotion::FormotionScreen
show all
- Includes:
- ScreenModule
- Defined in:
- lib/ProMotion/screens/_compatibility/formotion_screen.rb
Instance Attribute Summary
Attributes included from ScreenModule
#first_screen, #modal, #parent_screen, #split_screen, #tab_bar, #tab_bar_item
Class Method Summary
collapse
Instance Method Summary
collapse
#add_nav_bar, #bar_button_item, #first_screen?, #has_nav_bar?, included, #is_modal?, #load_view_controller, #modal?, #nav_bar?, #navigation_controller, #navigation_controller=, #on_appear, #on_create, #on_disappear, #on_rotate, #refresh_tab_bar_item, #set_nav_bar_button, #set_nav_bar_left_button, #set_nav_bar_right_button, #set_tab_bar_item, #set_view_controller, #should_autorotate, #should_rotate, #supported_device_families, #supported_device_family?, #supported_orientation?, #supported_orientations, #view_controller, #view_controller=, #view_did_appear, #view_did_disappear, #view_did_load, #view_will_appear, #view_will_disappear, #will_appear, #will_disappear, #will_rotate
#create_split_screen, #open_split_screen, #splitViewController, #split_screen_controller
Methods included from ScreenTabs
#create_tab_bar_icon, #create_tab_bar_icon_custom, #create_tab_bar_item, #open_tab, #open_tab_bar, #replace_current_item, #select, #tab_bar_controller
ios_version, ios_version_greater?, ios_version_greater_eq?, ios_version_is?, ios_version_less?, ios_version_less_eq?
#add, #add_to, #bounds, #frame, #remove
Methods included from ViewHelper
#content_height, #frame_from_array, #objective_c_method_name, #set_attribute, #set_attributes, #set_easy_attributes
#app_delegate, #close_screen, #open_modal, #open_root_screen, #open_screen, #open_view_controller, #push_view_controller, #send_on_return
Class Method Details
.new(args = {}) ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 6
def self.new(args = {})
s = self.alloc.initWithStyle(UITableViewStyleGrouped)
s.on_create(args) if s.respond_to?(:on_create)
if s.respond_to?(:table_data)
s.form = s.table_data
elsif args[:form]
s.form = args[:form]
else
PM.logger.error "PM::FormotionScreen requires a `table_data` method or form: to be passed into `new`."
end
s.tableView.allowsSelectionDuringEditing = true
s
end
|
Instance Method Details
#didRotateFromInterfaceOrientation(orientation) ⇒ Object
60
61
62
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 60
def didRotateFromInterfaceOrientation(orientation)
self.on_rotate
end
|
#shouldAutorotate ⇒ Object
52
53
54
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 52
def shouldAutorotate
self.should_autorotate
end
|
#shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object
48
49
50
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 48
def shouldAutorotateToInterfaceOrientation(orientation)
self.should_rotate(orientation)
end
|
#viewDidAppear(animated) ⇒ Object
33
34
35
36
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 33
def viewDidAppear(animated)
super
self.view_did_appear(animated) if self.respond_to?(:view_did_appear)
end
|
#viewDidDisappear(animated) ⇒ Object
43
44
45
46
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 43
def viewDidDisappear(animated)
self.view_did_disappear(animated) if self.respond_to?(:view_did_disappear)
super
end
|
#viewDidLoad ⇒ Object
23
24
25
26
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 23
def viewDidLoad
super
self.view_did_load if self.respond_to?(:view_did_load)
end
|
#viewWillAppear(animated) ⇒ Object
28
29
30
31
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 28
def viewWillAppear(animated)
super
self.view_will_appear(animated) if self.respond_to?(:view_will_appear)
end
|
#viewWillDisappear(animated) ⇒ Object
38
39
40
41
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 38
def viewWillDisappear(animated)
self.view_will_disappear(animated) if self.respond_to?(:view_will_disappear)
super
end
|
#willRotateToInterfaceOrientation(orientation, duration: duration) ⇒ Object
56
57
58
|
# File 'lib/ProMotion/screens/_compatibility/formotion_screen.rb', line 56
def willRotateToInterfaceOrientation(orientation, duration:duration)
self.will_rotate(orientation, duration)
end
|