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
Open
1.增加了对在绘制完手势密码之后选中节点的显示状态(颜色、连线的颜色)的控制。 2. 增加了一个接口能直接绘制指定的手势密码#3jianpx wants to merge 2 commits intokejinlu:masterfrom
jianpx wants to merge 2 commits intokejinlu:masterfrom
Conversation
…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.
Owner
|
咨询下为何需要增加nodeSize这个属性呢?设置了节点图片 不就决定了相应的节点大小了么? |
Author
|
当时没仔细看, 原来在设置图片的时候已经决定了节点的大小。那nodeSize其实没必要了。 |
…o constraint node size, now remove nodeSize property.
Owner
|
对于错误时候以另一种样式显示的方案,我有个思路,就是为控件提供一种状态的概念,就像UIButton你可以设置normal的图片,也可以设置highlight的图片一样。 这里可以设置normal的lineColor,也可以设置highlight的lineColor。 |
Author
|
嗯,加入状态的概念的话, 你的节点就不能简单的用Button来实现了,而是真正是一个Node的抽象对象。这样理解会好一点。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
如题! 功能已经测试过,passed。不过
- (void)redrawOnlySelectionWithLineColor:(UIColor *)lineColor selectedImage:(UIImage *)selectedImage这个接口现在不是很好,因为它会改了内部使用的线的颜色和选中的图片,需要在使用完之后重新设置原来的线颜色和选中图片才行。 麻烦你也可以看下有无更好的方式。