This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
extensions:sx_switch [2011/04/12 08:29] – [SXSwitch] pixelrevision | extensions:sx_switch [2015/09/14 11:14] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
+ | ====== SXSwitch ====== | ||
+ | |||
+ | ---- dataentry extension ---- | ||
+ | type : extension | ||
+ | author_mail | ||
+ | description | ||
+ | lastupdate_dt : 2011-4-11 # the date you created the extension | ||
+ | compatible | ||
+ | depends | ||
+ | tags : uiswitch, switch, toggle | ||
+ | homepage_url | ||
+ | download_url | ||
+ | ---- | ||
+ | |||
+ | ===== Usage ===== | ||
+ | |||
+ | <code objc> | ||
+ | - (id)initWithWidth: | ||
+ | self = [super initWithWidth: | ||
+ | sxSwitch = [[SXSwitch alloc] init]; | ||
+ | [sxSwitch addEventListener: | ||
+ | [self addChild: | ||
+ | return self; | ||
+ | } | ||
+ | |||
+ | - (void)onValueChange: | ||
+ | NSLog(@" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * // | ||
+ | |||
+ | ===== Source Code ===== | ||
+ | |||
+ | %gist(915041)% | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | //No comments so far. Feel free to edit this part of the page.// |