Giter VIP home page Giter VIP logo

sppatternlock's Issues

wrong sequence

@freesuraj
image_uploaded_from_ios__4_

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

using Cocoapod

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 '()'

issue when intersected pattern

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.