iPhone遮盖系统栏,实现自定义效果的状态栏
2012-03-18 00:24
211 查看
转自:http://www.cocoachina.com/bbs/read.php?tid-13581-toread-1.html
上面的代码演示了创建一个小图标从时间的左侧移动到时间右侧的简单效果,喜欢的可以自己实现一些其他的效果
描述:效果图
CGRect frame = {{0, 0}, {320, 20}}; UIWindow* wd = [[UIWindow alloc] initWithFrame:frame]; [wd setBackgroundColor:[UIColor clearColor]]; [wd setWindowLevel:UIWindowLevelStatusBar]; frame = CGRectMake(100, 0, 30, 20); UIImageView* img = [[UIImageView alloc] initWithFrame:frame]; [img setContentMode:UIViewContentModeCenter]; [img setImage:[UIImage imageNamed:@"00_0103.png"]]; [wd addSubview:img]; [wd makeKeyAndVisible]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:2]; frame.origin.x += 150; [img setFrame:frame]; [UIView commitAnimations];
上面的代码演示了创建一个小图标从时间的左侧移动到时间右侧的简单效果,喜欢的可以自己实现一些其他的效果
描述:效果图
![](http://hi.csdn.net/attachment/201203/17/0_1332001612TJK0.gif)
相关文章推荐
- iPhone遮盖系统栏,实现自定义效果的状态栏
- iPhone遮盖系统栏,实现自定义效果的状态栏
- iPhone遮盖系统栏,实现自定义效果的状态栏
- ios学习--iPhone遮盖系统栏,实现自定义效果的状态栏
- iPhone遮盖系统栏,实现自定义效果的状态栏
- Android 沉浸式状态栏效果(状态栏与内容完全融合、类似于iphone 7.0系统)
- Android中动画实现单击按钮控制开屏关屏效果(系统animation实现、scrollTo实现、自定义scrollTo实现)
- 实现自定义效果的状态栏
- Android进阶——自定义View之继承系统控件实现自带删除按钮动画效果和软键盘自动悬浮于文本框下方
- Android属性动画与自定义View——实现vivo x6更新系统的动画效果
- css3实现渐变的iPhone滑动解锁效果
- android自定义View实现图片上传进度显示(仿手机QQ上传效果)
- Android 自定义View实现芝麻分曲线图效果
- ios学习--详解IPhone动画效果类型及实现方法
- Android自定义TextView实现跑马灯效果
- android 4.4以上可以实现的沉浸式状态栏效果
- 使用自定义+属性动画实现小圆球抛物线的效果
- 移动开发----Android模仿打字机效果的自定义View实现
- Android自定义控件之实现类似文件夹顶部的层层显示的横栏效果
- Android自定义view实现圆环效果实例代码