摘要: - (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 * 阅读全文
posted @ 2012-02-13 14:55 宇K 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 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" 阅读全文
posted @ 2012-02-13 14:10 宇K 阅读(901) 评论(0) 推荐(1) 编辑
摘要: 很高兴来到博客园,报个到!!! 阅读全文
posted @ 2012-02-13 13:23 宇K 阅读(124) 评论(0) 推荐(0) 编辑