作者:上海悠u7_ | 来源:互联网 | 2023-06-11 21:11
Android系统默认情况下App的所有组件都运行在主线程中(也叫UI线程),如果我们有某个操作占用时间较长,就有可能阻塞我们的UI,导致用户的交互不顺畅,如果卡的时间超过5秒,系
UIButton上使用UIEdgeInsetsMaketitle 跟图片对齐
http://blog.csdn.net/yanxiaoqing/article/details/7230660
contentSize、contentInset和contentOffset区别
http://blog.csdn.net/kylinbl/article/details/7043936
UIView层次管理 放到最上层 放到最下层
将一个UIView显示在最前面只需要调用其父视图的 bringSubviewToFront()方法。
将一个UIView层推送到背后只需要调用其父视图的 sendSubviewToBack()方法。
遍历window的所有子视图
for (UIView *view inself.window.subviews)
{
if ([view isKindOfClass:[QzoneInternalGuideclass]]) {
[self.windowbringSubviewToFront:view];
break;
}
}
一些效果
1.添加阴影
self.layer.shadowOffset = CGSizeMake(-5, 3);
self.layer.shadowOpacity = 0.4;
self.layer.shadowColor = [UIColor blackColor].CGColor;
2.添加圆角
btn.layer.cornerRadius = 8; btn.layer.masksToBounds = YES;//使用边界来做遮罩
设置密文
[self.originalPwd setSecureTextEntry:YES];
视图之UITabBarController结构详解(侧重于文档分析)
http://blog.csdn.net/likendsl/article/details/7620726