Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some time result in crash #1

Closed
cjckkk opened this issue Dec 10, 2015 · 1 comment
Closed

some time result in crash #1

cjckkk opened this issue Dec 10, 2015 · 1 comment

Comments

@cjckkk
Copy link

cjckkk commented Dec 10, 2015

add method:
void(^animation3)(void) = ^{
[UIView AR_springAnimationWithDuration:0.8 animations:^{
self.loginbtn.layer.scale = 2;
self.loginbtn2.layer.scale = 1;
self.loginbtn.layer.position = CGPointMake(CGRectGetMidX(self.view.bounds), ScreenHeight/2);
self.loginbtn2.layer.position = CGPointMake(CGRectGetMidX(self.view.bounds), ScreenHeight/2);
} completion:nil];

};
void(^animation2)(void) = ^{
    [UIView AR_springAnimationWithDuration:1.1 animations:^{
        self.loginbtn.layer.cornerRadius = CGRectGetMidX(self.loginbtn.bounds);
        self.loginbtn2.layer.cornerRadius = CGRectGetMidX(self.loginbtn2.bounds);
        static dispatch_once_t onceToken;

        dispatch_once(&onceToken, ^{
            self.loginbtn2.layer.rotation = M_PI*2;
            self.loginbtn.layer.rotation = -M_PI*2;
                       });

    } completion:animation3];
};

void(^animation1)(void) = ^{
    [UIView AR_animationWithDuration:0.5 animations:^{
        self.loginbtn.layer.position = CGPointMake(CGRectGetMidX(self.view.bounds), 150);
        self.loginbtn2.layer.position = CGPointMake(CGRectGetMidX(self.view.bounds), 150);
        self.loginbtn.layer.scaleX = 1.3;
        self.loginbtn2.layer.scaleY = 1.3;
    } completion:animation2];
};


[UIView AR_animationWithDuration:0.1 animations:^{
    self.loginbtn.backgroundColor = NavgationBarColor;
    self.loginbtn2.backgroundColor = [self randomColor];
    self.loginbtn2.alpha = 1;
} completion:animation1];

some time result in crash

@AugustRush
Copy link
Owner

some detail for me? the stack information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants