摘要:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {mouseSwiped = NO;UITouch *touch = [touches anyObject];if ([touch tapCount] == 2) {drawImage.image = nil;return;}lastPoint = [touch locationInView:self.view];lastPoint.y -= 20;}- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent * 阅读全文
摘要:
1.普通动画:[UIView beginAnimations:nil context:nil];[UIView setAnimationDuration:2];frame.origin.x += 150;[img setFrame:frame];[UIView commitAnimations];2.连续动画(一系列图像):NSArray *myImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"myImage1.png"],[UIImage imageNamed:@"myImage2.png" 阅读全文
摘要:
很高兴来到博客园,报个到!!! 阅读全文