Skip to content

Commit d00bc88

Browse files
committed
Buttons ok,game just start
1 parent deaf6d0 commit d00bc88

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

Examples/UICatalog/UICatalog/js/buttonsViewController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ var ButtonsViewController = JSB.defineClass('ButtonsViewController : UITableView
7575
tableViewTitleForHeaderInSection: function(tableView, section) {
7676
return self.dataSourceArray[section]['sectionTitleKey'];
7777
},
78-
tableViewHeightForRowAtIndexPath: function(tableView, indexPath) {
79-
return (indexPath.row == 0) ? 50 : 38;
80-
},
78+
// tableViewHeightForRowAtIndexPath: function(tableView, indexPath) {
79+
// return (indexPath.row == 0) ? 50 : 38;
80+
// },
8181
tableViewCellForRowAtIndexPath: function(tableView, indexPath) {
8282
if (indexPath.row == 0) {
8383
// var cell = UITableViewCell.alloc().initWithStyleReuseIdentifier(0, 'DisplayCellID');

Examples/UICatalog/UICatalog/js/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//var MainViewController = JSB.require('mainViewController');
2-
var ButtonsViewController = JSB.require('buttonsViewController');
1+
var MainViewController = JSB.require('mainViewController');
2+
//var ButtonsViewController = JSB.require('buttonsViewController');
33

44
var bounds = UIScreen.mainScreen().bounds;
55

@@ -11,8 +11,8 @@ window.backgroundColor = UIColor.redColor();
1111

1212
var navigationController = UINavigationController.new();
1313

14-
//var mainViewController = MainViewController.new();
15-
var mainViewController = ButtonsViewController.new();
14+
var mainViewController = MainViewController.new();
15+
//var mainViewController = ButtonsViewController.new();
1616
navigationController.viewControllers = [mainViewController];
1717

1818
window.rootViewController = navigationController;

Examples/UICatalog/UICatalog/js/mainViewController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ var MainViewController = JSB.defineClass('MainViewController : UITableViewContro
1717
title: 'Buttons',
1818
explanation: 'Various uses of UIButton',
1919
// viewController: ButtonsViewController.alloc().initWithStyle(1)
20-
viewController: create_withStyle('ButtonsViewController',1)
20+
// viewController: create_withStyle('ButtonsViewController',1)
21+
viewController: ButtonsViewController.new()
22+
2123
// },
2224
// {
2325
// title: 'Controls',

0 commit comments

Comments
 (0)