Skip to content

Commit dd0296a

Browse files
Refine example project.
1 parent e87e07e commit dd0296a

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Examples/UICatalog/UICatalog/js/twitterViewController.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,20 @@ var TwitterViewController = JSB.define('TwitterViewController : UITableViewContr
6767
var account = accounts[0];
6868
self.getHomeTimlineWithAccount(account);
6969
} else {
70-
70+
JSB.dispatch_async(JSB.dispatch_get_main_queue(), function() {
71+
var alertView = UIAlertView.new();
72+
alertView.message = 'No Twitter account.';
73+
alertView.addButtonWithTitle('OK');
74+
alertView.show();
75+
});
7176
}
7277
} else {
73-
78+
JSB.dispatch_async(JSB.dispatch_get_main_queue(), function() {
79+
var alertView = UIAlertView.new();
80+
alertView.message = 'Twitter account access denied.';
81+
alertView.addButtonWithTitle('OK');
82+
alertView.show();
83+
});
7484
}
7585
});
7686
},

0 commit comments

Comments
 (0)