Sha256: cd7e8d0b75a9f66bdafc029d42b5117d53d4b37df468f576ad9f0007c3576922
Contents?: true
Size: 898 Bytes
Versions: 2
Compression:
Stored size: 898 Bytes
Contents
waxClass{"BlueViewController", UIViewController} function init(self) self.super:initWithNibName_bundle("BlueViewController", nil) return self end function viewDidLoad(self) -- The button and textField varibles are automatically created and added to the class via IB self.button = self:view():viewWithTag(100) self.button:addTarget_action_forControlEvents(self,"btnClicked:",UIControlEventTouchUpInside); end -- Put IBAction next to, or above a function to make it appear in IB function btnClicked(self, sender) -- IBAction local parentView = self:view():superview() UIView:beginAnimations_context(nil, nil) UIView:setAnimationTransition_forView_cache(UIViewAnimationTransitionFlipFromLeft, parentView, true) self:view():removeFromSuperview() orangeController = OrangeViewController:init() parentView:addSubview(orangeController:view()) UIView:commitAnimations() end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
candle-0.0.7 | lib/candle/generators/templates/xib/scripts/BlueViewController.lua |
candle-0.0.6 | lib/candle/generators/templates/xib/scripts/BlueViewController.lua |