Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 610 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 610 Bytes

JCSwitchTextView

仿小米应用商店搜索框文字切换的View,基于UIView使用CALayer实现。

demo gif


Usage

Creation of a JCSwitchTextView

JCSwitchTextView *switchTextView = [[JCSwitchTextView alloc] initWithFrame:CGRectMake(10, 40, kScreenWidth - 2 * 10, 40) iconImage:[UIImage imageNamed:@"search"] textArray:textArray timeInterval:2.0];
[self.view addSubView:switchTextView];

License

See LICENSE file for details.