DVSwitch:基于用Objective-C编写的UISwitch和UISegmentedControl的可定制控件

时间:2021-07-07 22:57:53
【文件属性】:
文件名称:DVSwitch:基于用Objective-C编写的UISwitch和UISegmentedControl的可定制控件
文件大小:26KB
文件格式:ZIP
更新时间:2021-07-07 22:57:53
Objective-C DV开关 基于用Objective-C编写的UISwitch和UISegmentedControl的可定制控件 DVSwitch 的灵感来自 UISwitch 和 UISegmentedControl。 这段代码的目标是: 易于自定义的控件,带有漂亮的动画 支持平移或滑动交互 需要很少的设置 - 不需要图像 漂亮的字体颜色反转效果——标签颜色每像素变化: 根据项目数自动调整 滑块从一个项目到另一个项目的中间,注意每个像素的文本颜色变化 用法 DVSwitch *switcher = [[DVSwitch alloc] initWithStringsArray:@[@"First", @"Second"]]; switcher.frame = CGRectMake(20, 60, self.view.frame.size.width - 40, 34); [self.view ad
【文件预览】:
DVSwitch-master
----.gitignore(495B)
----DVSwitch.podspec(1005B)
----DVSwitcherExample.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcuserdata()
----LICENSE(1KB)
----DVSwitcherExample()
--------main.m(355B)
--------ViewController.m(3KB)
--------AppDelegate.h(298B)
--------Info.plist(1KB)
--------Images.xcassets()
--------DVSwitch.m(15KB)
--------AppDelegate.m(2KB)
--------DVSwitch.h(2KB)
--------ViewController.h(304B)
--------Base.lproj()
----DVSwitcherExampleTests()
--------Info.plist(757B)
--------DVSwitcherExampleTests.m(910B)
----README.md(2KB)
----Source()
--------DVSwitch.m(15KB)
--------DVSwitch.h(2KB)

网友评论