iPhone界面设计和部署
答
Flipboard将是具有动画的整洁用户界面的最佳示例。他们做得非常妥当。
答
有许多iPhone应用程序呈现令人兴奋的GUI,从生产力应用程序到游戏。 动画效果页(视图)的过渡,淡入/淡出,动画的GUI组元移动,褪色,跳跃,流行音乐,等是在基本SDK非常简单和可能的,使用简单的命令如:
someObject.view.frame = CGRectMake(0,0, 100, 60);//sets the object size
[UIView beginAnimations:@"someAnimation" context:nil];//begin stacking animation instructions
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDelay:0.1];
[UIView setAnimationDuration:0.2];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:someObject.view cache:YES];// for example...
someObject.view.frame = CGRectOffset(someObject.view.frame, -320, 0);//will animate the object to move 320 px to the left..
[UIView commitAnimations];//animation will start now, is cancelable etc..
使用名为QuartzCore的库还允许向图层添加效果:每个图层可以应用于一个或多个GUI元素(允许分组):动态下拉阴影,渐变叠加,遮罩,边框轮廓以及更多..每个和任何Alpha通道组件是本地的。 其中许多效果都是动画效果。
iOs上的许多游戏都使用OpenGL ES,一个2d/3d引擎,类似于MS的directX,但更轻。我想,iPhone缺乏沉重,快速和激烈的方式,闪存管理矢量图形,所有曲线,渐变,符号和形状在内存和数据效率方面非常轻。矢量图形确实存在,但不像闪光灯那样显着。
从应用商店中测试一些顶尖的游戏。你会意识到(至少)可以做什么。 – taskinoor 2011-06-06 10:45:08