GithubHelp home page GithubHelp logo

moqod / ios-scratch-n-see Goto Github PK

View Code? Open in Web Editor NEW
422.0 422.0 109.0 3.82 MB

The project provides en effect when the user swipes the finger over one texture and by swiping reveals the texture underneath it. The effect can be applied for scratch-card action or wiping a misted glass.

Objective-C 50.10% Objective-C++ 49.90%

ios-scratch-n-see's People

Contributors

akopanev avatar cyberbum avatar jnis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-scratch-n-see's Issues

New Suggestions.

sir,
1> is it possible for us to stop touches/revealing at particular masking progress? i tried using disabling user interaction like this but no success.

  • (void)mdScratchImageView:(MDScratchImageView *)scratchImageView didChangeMaskingProgress:(CGFloat)maskingProgress {
    NSLog(@"%s %p progress == %.2f", PRETTY_FUNCTION, scratchImageView, maskingProgress);
    if (maskingProgress == 0.30) {
    scratchImageView.userInteractionEnabled = false;
    }
    }

2> is there any way i can removed blured image at particular time and reveal the real image?

UIButton not clickable

Hi,
I need to add a new button on scratchView when the progres is +0.9. When I add the button, it is not clickable. How can I solve the problem?

Thanks

Not working with Swift

CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
CGContextBeginPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

Crashes every time while reusing the Imageview

Hi akopanev,

Thanks for your code and it works great when its in single view. If i integrate your ImageMaskView with iCarousel or even in UIscrollview to apply the scratch effect to many view. My app crashes where it points to utils class files and Imagemaskview class files. I am using ARC in my app. Does it affects because of using ARC . Pls reply me. Thanks.

Bug in -[MDScratchImageView addTouches:]

Hi akopanev, MDScratchImageView is awesome and thank you for sharing it.

I think it does not get the pixel size of the image properly and it will draw at wrong point for the first touch if the scale of image is not 1.0.

- (UIImage *) addTouches:(NSSet *)touches
{
    CGSize size = self.image.size;
    // ...
}

should be

- (UIImage *) addTouches:(NSSet *)touches
{
    CGSize size = CGSizeMake(self.image.size.width * self.image.scale, self.image.size.height * self.image.scale);
    // ...
}

Undo / Redo - Question (no error)

Question 1: Question 1: I would like some help - how can I integrate an undo / redo?
...
Question 2: With faster movement, the erased line has not soft curves
img_0288

Objective-C version

Hi

I got trouble adding this library to my objective-c project. When I do, I get the "Use of @import" alert.

Any help ?

Image rotate

Hello,
some images are rotate automatically.
It work in simulator properly but not in iphone (5s).

Thank you

Not working with iOS 9 and iOS 9.1. Tested on iPhone 6s

Hello,

When you scratch and image for the first time it works perfect, but if you release your finger and try to scratch the same image again the app freeze. Im trying to solve the problem by myself but not a single error is shown in Xcode. The example project is failing too.
Do you guys still work in this project?
Can you please help me solving this? or can you tell me how to solve this?

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.