freesuraj / sppatternlock Goto Github PK
View Code? Open in Web Editor NEWA Pattern Lock for iOS similar to the one in Android
License: MIT License
A Pattern Lock for iOS similar to the one in Android
License: MIT License
when you connect all nodes in pattern and try to drag then you get this wrong sequence
i will fix it in non complex mode by remove all duplicated numbers but how i can fix it in complex mode
I have a problem when using pod in can't access
let config = LockScreen.Config()
and get this error
Cannot invoke value of type 'LockScreen.Config.Type' with argument list '()'
hi i noticed that when you make a pattern like (3564) which mean that the draw line will get intersected with a circle that had been touched before.. it never match on confirm
so i've added some code you may want to added it to your code :)
change - (NSNumber *)patternToUniqueId method to
(NSNumber *)patternToUniqueId
{
NSArray *copy = [self.cellsInOrder copy];
NSInteger index = [copy count] - 1;
for (id object in [copy reverseObjectEnumerator]) {
if ([self.cellsInOrder indexOfObject:object inRange:NSMakeRange(0, index)] != NSNotFound) {
[self.cellsInOrder removeObjectAtIndex:index];
}
index--;
}
long finalNumber = 0;
long thisNum;
for(int i = self.cellsInOrder.count - 1 ; i >= 0 ; i--){
thisNum = ([[self.cellsInOrder objectAtIndex:i] integerValue] + 1) * pow(10, (self.cellsInOrder.count - i - 1));
finalNumber = finalNumber + thisNum;
}
return @(finalNumber);
}
Best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.