iOS 实现类似安卓的 九宫格 手势锁 组件
来源:互联网 发布:网络黑白 花无涯 在线 编辑:程序博客网 时间:2024/05/17 03:51
先看效果:
该组件中,可自定义九宫格的所有UI表现,自己DIY出想要的九宫格样子---组件地址:《http://download.csdn.net/detail/shuangyu1989/6799351》
注:以前也传过这个组件,之前做的有些类似草稿,因为要赶项目进度,最近有空把这个组件完善了一下,也提供了很多自定义UI的属性和接口
头文件中接口和属性具体如下:
#import <UIKit/UIKit.h>@class ITTLockView;@protocol ITTLockViewDelegate <NSObject>@optional- (void)lockView:(ITTLockView *)lockView didSelectedCircleAtIndex:(NSInteger)index;- (void)touchesEnd:(ITTLockView *)lockView;@end@interface ITTLockView : UIImageView//@property (nonatomic, retain) UIImage *selectedImage;@property (nonatomic, retain) UIColor *lineColor;@property (nonatomic, retain) UIImage *selectedImage4FalseState;@property (nonatomic, retain) UIColor *lineColor4FalseState;@property (nonatomic, assign) NSInteger lineWidth;// 设置是否能跳点连接@property (nonatomic, assign) BOOL canSkipConnect;// @property (nonatomic, retain) NSMutableArray *selectedIndexs;// @property (nonatomic, assign) id<ITTLockViewDelegate> delegate;//@property (nonatomic, assign) BOOL currentState;//@property (nonatomic, assign) BOOL touchesEnabled;- (id)initWithFrame:(CGRect)frame circleRadius:(float)radius circleColor:(UIColor *)color circleThickness:(float)thickness circleFillColor:(UIColor *)fillColor;- (id)initWithFrame:(CGRect)frame circleRadius:(float)radius circleColor:(UIColor *)color circleThickness:(float)thickness;- (id)initWithFrame:(CGRect)frame circleRadius:(float)radius circleColor:(UIColor *)color;- (void)resetInterface;@end
1 0
- iOS 实现类似安卓的 九宫格 手势锁 组件
- IOS 实现类似安卓的Toast
- Android 实现类似九宫格的程序锁
- 【Android】九宫格手势锁简单实现
- 【Android】九宫格手势锁简单实现
- 九宫格手势锁实现思路
- 九宫格手势锁
- 九宫格安全手势锁
- iOS 九宫格连线手势解锁
- 安卓九宫格
- 安卓开发26:安卓-九宫格实现
- iOS中类似九宫格排版数据
- ios九宫格实现
- iOS实现九宫格
- Android 自定义九宫格手势锁
- 九宫格手势密码
- 手势解锁-九宫格
- 九宫格手势解锁
- 启动一个Activity如果已经存在就显示它,而不是重新加载
- Jump Game
- 好的Kentico内容管理网站有哪些(2013年11月)(下)
- hibernate多对一关系中,JSON serializing对象时报JsonMappingException
- mysql 5.6 分区表
- iOS 实现类似安卓的 九宫格 手势锁 组件
- osg demo20 输出模型所有结点
- 科学的未来在哪里?
- Java SSL/TLS 安全通讯协议介绍
- Word Break
- Mac下编译PHP的pgsql扩展库方法
- MSSQL存储过程详解
- 如何关闭 一个 应用中的所有 Activity
- 给UIImageview 添加边框 或者设置成圆角