我注意到这款iPhone应用程序Reeder在电池图标上方有一个特殊图标.这是怎么做到的?它甚至在那个角落做动画,所以我假设你可以在电池顶部放置一个UIView?
另外一个问题是,如何在NavBar和底部工具栏上叠加纹理?注意到条纹不是完全黑色的,它上面有纹理.
alt text http://img689.imageshack.us/img689/1224/photofo.jpg
我想这个应用程序只是创建一个UIWindow将其windowLevel属性设置为某个大值.通过这样做,可以使窗口看起来是状态栏的一部分.
UIWindow *topWindow = [[UIWindow alloc] initWithFrame:CGRectMake(5.0f, 5.0f, 310.0f, 12.0f)];
[topWindow setBackgroundColor:[UIColor redColor]];
[topWindow setAlpha:0.5f];
[topWindow setWindowLevel:10000.0f];
[topWindow setHidden:NO];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
702 次 |
| 最近记录: |