iOS 切换视图 DVSwitch
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/Voley/DVSwitch
软件介绍
DVSwitch 是可定制的,基于 UISwitch 和 UISegmentedControl 的控件,使用 Objective-C 编写。
DVSwitch 灵感来源于 UISwitch 和 UISegmentedControl,目标如下:
简单定制非常漂亮的动画控件
支持拖动或者点击交互
启动要求非常低 ,不需要图片
漂亮的字体颜色效果
基于项数值自动调节
使用
DVSwitch *switcher = [[DVSwitch alloc] initWithStringsArray:@[@"First", @"Second"]];
switcher.frame = CGRectMake(20, 60, self.view.frame.size.width - 40, 34);
[self.view addSubview:switcher];
[switcher setPressedHandler:^(NSUInteger index) {
NSLog(@"Did switch to index: %lu", (unsigned long)index);
}];
[self.view addSubview:switcher];
可定制属性:
UIColor *backgroundColor- color of the controls backgroundUIColor *sliderColor- color of sliderUIColor *labelTextColorInsideSlider- color of text when slider hovers over itUIColor *labelTextColorOutsideSlider- color of text when outside of sliderUIFont *font- font used in controlCGFloat cornerRadius- corner radius of control and corner radius of sliderCGFLoat sliderOffset- pixel offset in points between the slider and the edge of control
算法概论
Sanjoy Dasgupta、Christos Papadimitriou、Umesh Vazirani / 钱枫 注、邹恒明 注 / 机械工业出版社 / 2009-1 / 55.00元
《算法概论(注释版)》源自加州大学伯克利分校和加州大学圣迭戈分校本科生的算法课讲义,以独特的视角展现了算法设计的精巧技术及魅力。在表达每一种技术时,强调每个算法背后的简洁数学思想,分析其时间和空间效率,运用与其他技术类比的方法来说明特征,并提供了大量实例。《算法概论(注释版)》以人类最古老的算法(算术运算)为起点,将各种算法中优美而有代表性的内容囊括书中,并以最前沿的理论(量子算法)结束,构成了较......一起来看看 《算法概论》 这本书的介绍吧!
Markdown 在线编辑器
Markdown 在线编辑器
UNIX 时间戳转换
UNIX 时间戳转换
