您的位置:首页 > 移动开发 > 微信开发

微信二维码扫描时的动画效果 线

2013-09-16 16:04 239 查看
UIView *line = [[UIView alloc] initWithFrame:CGRectMake((viewWidth - width)/2, origin_y, width, 1)];

    [self.view addSubview:line];

    line.backgroundColor = [UIColor redColor];

    

    [UIView beginAnimations:@"animationID" context:NULL];

    [UIView setAnimationDuration:4];

    

    [UIView setAnimationCurve:UIViewAnimationCurveLinear];

    [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:line cache:YES];  //这句话估计得注释掉才行,有一次就因为这句话出现个小问题

    [UIView setAnimationRepeatCount:100];

    

    [line setFrame:CGRectMake((viewWidth - width)/2, origin_y+width, width, 1)];

    [UIView commitAnimations];

    

    [line release];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐