UISwitch 控件 ZJSwitch
- 授权协议: BSD
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/Jameszjhe/zjswitch
软件介绍
ZJSwitch 实现具有 iOS7 风格 UISwitch 控件,可在Switch上显示定制文字。
使用方法:
ZJSwitch *switch0 = [[ZJSwitch alloc] initWithFrame:CGRectMake(100, 100, 60, 31)]; switch0.backgroundColor = [UIColor clearColor]; [switch0 addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged]; [self.view addSubview:switch0]; ZJSwitch *switch1 = [[ZJSwitch alloc] initWithFrame:CGRectMake(100, 140, 60, 31)]; switch1.backgroundColor = [UIColor clearColor]; switch1.tintColor = [UIColor orangeColor]; [switch1 addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged]; [self.view addSubview:switch1]; ZJSwitch *switch2 = [[ZJSwitch alloc] initWithFrame:CGRectMake(100, 180, 80, 31)]; switch2.backgroundColor = [UIColor clearColor]; switch2.tintColor = [UIColor orangeColor]; switch2.onText = @"ON"; switch2.offText = @"OFF"; [switch2 addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged]; [self.view addSubview:switch2];
Perl最佳实践
康韦 / Taiwan公司 / 东南大学出版社 / 2008-3 / 78.00元
《Perl最佳实践》中所有的规则都是为了写出清晰、健壮、高效、可维护和简洁的程序而设计。Conway博士并不自诩这些规则是最广泛和最清晰的实践集,但实际上,《Perl最佳实践》确实提供了在实践中被广泛认可和应用的建议,而不是象牙塔似的编程理论。许多程序员凭直觉来编程,这些直觉来自于他们早期养成的习惯和风格。这样写出的程序似乎自然、直观,而且看起来也很不错。但是,如果你想严肃地对待程序员这份职业,那......一起来看看 《Perl最佳实践》 这本书的介绍吧!
