Last active
December 21, 2015 02:48
-
-
Save ryanabel03/6237260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginViewController < UIViewController | |
include Objection::Compose | |
compose_with :login_table_view_model | |
#A stylesheet for all the styles in this controller | |
stylesheet :login_screen | |
def viewDidLoad | |
super | |
@table_view_controller = UITableViewController.alloc.initWithStyle UITableViewStyleGrouped | |
@table_view_controller.tableView.dataSource = self.login_table_view_model | |
@table_view_controller.tableView.delegate = self.login_table_view_model | |
#Create a UIScrollView subview and add a UITableView into it as a subview | |
@scroll_view = subview UIScrollView, :scroll_view do | |
subview @table_view_controller.tableView, :table_view | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment