Sha256: 3fe689e93224c8df23aeea931c9f58d748b0fc0decfc7345dcf652349991b6e0
Contents?: true
Size: 886 Bytes
Versions: 2
Compression:
Stored size: 886 Bytes
Contents
waxClass{"OrangeViewController", UIViewController} IBOutlet "textField" -- This makes the property visible from IB function init(self) self.super:initWithNibName_bundle("OrangeViewController", 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 function btnClicked(self, sender) local parentView = self:view():superview() UIView:beginAnimations_context(nil, nil) UIView:setAnimationTransition_forView_cache(UIViewAnimationTransitionFlipFromRight, parentView, true) self:view():removeFromSuperview() blueController = BlueViewController:init() parentView:addSubview(blueController: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/OrangeViewController.lua |
candle-0.0.6 | lib/candle/generators/templates/xib/scripts/OrangeViewController.lua |