我有4个图像。我想在UIView中逐个添加图像。 请给我任何想法。如何在UIView中添加图像数组。如何将图像添加到UIView
2
A
回答
6
它不是从你的问题不清楚,但我猜你婉由一个一段时间的延迟后,显示的图像在你看来一个......如果你愿意,你面包车
[self performSelector:@selector(callFunction) withObject:nil afterDelay:0 ];
[self performSelector:@selector(callFunction2) withObject:nil afterDelay:k_AnimateTime ];
[self performSelector:@selector(callFunction3) withObject:nil afterDelay:2*k_AnimateTime ];
得到它是什么
的功能
imageview = [[[UIImageView alloc] initWithFrame:CGRectMake(x,y,w,h)]autorelease];
imageview.image = [[UIImage imageNamed: [NSString stringWithString:name]]autorelease];
[self.view addSubview:imageview];
imageview.frame = CGRectMake(imageview.frame.origin.x, (imageview.frame.origin.y), imageview.frame.size.width, imageview.frame.size.height);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
//[UIView setAnimationWillStartSelector:@selector(Transform2)];
[UIView setAnimationDuration:k_AnimateTime];
[UIView setAnimationBeginsFromCurrentState:YES];
//[UIView setAnimationDidStopSelector:@selector(increaseCount)];
imageview.frame = CGRectMake(imageview.frame.origin.x - Ex, (imageview.frame.origin.y - Ey), imageview.frame.size.width, imageview.frame.size.height);
[UIView commitAnimations];
[self.view addSubview:imageview];
}
相关问题
- 1. 如何将图像添加到视图
- 2. 如何将图像添加到位图
- 3. 如何将UISearchDisplayController添加到UIView?
- 4. 如何将UIview添加到SpriteKit项目?
- 5. 如何将UIView添加到MKMap?
- 6. 如何将uiview作为子视图添加到现有视图
- 7. 如何将图像添加到比例?
- 8. 如何将图像添加到TreeView.Tag?
- 9. Java:如何将图像添加到Jlabel?
- 10. 如何将图像添加到TextView中
- 11. 如何将图像添加到数组?
- 12. 如何将图像添加到画布
- 13. 如何将文字添加到图像
- 14. 如何将图像添加到ListView?
- 15. 如何将图像添加到ToolStripMenuItem
- 16. 如何将图像值添加到h:commandlink?
- 17. 如何将图像添加到JButton
- 18. 将MPMoviePlayerController的视图添加到UIView
- 19. 你会如何添加大量的图像到UIview?
- 20. 将uiview添加到uiviewcontroller
- 21. 将UIView添加到UIViewController
- 22. 将UINavigationController添加到UIView?
- 23. 需要帮助才能在iOS4的uiview中将图像添加到图像中?
- 24. 将图像添加到JApplet
- 25. 将图像添加到UItableView
- 26. 将图像添加到Excel
- 27. 将图像添加到UINavigationBar
- 28. 将图像添加到.dll
- 29. 将图像添加到HighChart
- 30. 将域添加到图像
你想为这些图像设置动画? – 2011-04-04 06:49:23
是我想动画这个图像数组一个接一个 – avinash 2011-04-04 06:56:11
我想在每个图像上添加Ken Burns效果 – avinash 2011-04-04 07:00:37