Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

1.增加了对在绘制完手势密码之后选中节点的显示状态(颜色、连线的颜色)的控制。 2. 增加了一个接口能直接绘制指定的手势密码#3

Open
jianpx wants to merge 2 commits intokejinlu:masterfrom
jianpx:master
Open

Conversation

@jianpx
Copy link

@jianpx jianpx commented Dec 27, 2013

如题! 功能已经测试过,passed。不过- (void)redrawOnlySelectionWithLineColor:(UIColor *)lineColor selectedImage:(UIImage *)selectedImage这个接口现在不是很好,因为它会改了内部使用的线的颜色和选中的图片,需要在使用完之后重新设置原来的线颜色和选中图片才行。 麻烦你也可以看下有无更好的方式。

…odes. * add drawSelectionWithPassCode interface to draw the specific passcode directly without using gesture. This is helpful when you use KKGestureLockView as thumbnail gesture lock view. * update README file for more detail about these changes.
@kejinlu
Copy link
Owner

kejinlu commented Dec 28, 2013

咨询下为何需要增加nodeSize这个属性呢?设置了节点图片 不就决定了相应的节点大小了么?

@jianpx
Copy link
Author

jianpx commented Dec 28, 2013

当时没仔细看, 原来在设置图片的时候已经决定了节点的大小。那nodeSize其实没必要了。

…o constraint node size, now remove nodeSize property.
@kejinlu
Copy link
Owner

kejinlu commented Jan 4, 2014

对于错误时候以另一种样式显示的方案,我有个思路,就是为控件提供一种状态的概念,就像UIButton你可以设置normal的图片,也可以设置highlight的图片一样。 这里可以设置normal的lineColor,也可以设置highlight的lineColor。

@jianpx
Copy link
Author

jianpx commented Apr 28, 2014

嗯,加入状态的概念的话, 你的节点就不能简单的用Button来实现了,而是真正是一个Node的抽象对象。这样理解会好一点。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants