Sha256: 45aee5e185cf0aef9b4233c75630ef3df4031c5feccf099bee6dc6389dd0b333
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
class AppDelegate def application application, didFinishLaunchingWithOptions: launchOptions @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @controller = UIViewController.alloc.initWithNibName(nil, bundle:nil) @window.rootViewController = @controller @window.makeKeyAndVisible @label = UILabel.alloc.initWithFrame [ [10,10], [300,100] ] @label.setAccessibilityLabel 'username' @label.setText '...' @controller.view.addSubview @label Facebook.app_id = ENV['APP_ID'] Facebook.sign_in do |granted, error| if granted @label.setText Facebook.accounts[0].username else puts error.code puts error.localizedDescription puts error.localizedRecoveryOptions puts error.localizedRecoverySuggestion @label.setText 'Fail... See Log' end end true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zuckermo-0.0.1 | app/app_delegate.rb |