Sha256: 0811fedf9527e3f83dca476b4fde7fe18df5792922458944754c70165a7a6260
Contents?: true
Size: 767 Bytes
Versions: 7
Compression:
Stored size: 767 Bytes
Contents
class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @view_controller =AccountSettingsController.alloc.initController @view_controller.navigationItem.leftBarButtonItem = UIBarButtonItem.alloc.initWithTitle("Render", style: UIBarButtonItemStyleBordered, target:self, action:'reset_form') @navigation_controller = UINavigationController.alloc.initWithRootViewController(@view_controller) @window.rootViewController = @navigation_controller @window.makeKeyAndVisible true end def submit @view_controller.form.submit end def reset_form AccountSettingsController.set_api_url_and_key_from_saved_settings end end
Version data entries
7 entries across 7 versions & 1 rubygems