![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ui
cjckkk
这个作者很懒,什么都没留下…
展开
-
iOS 跳转按钮设置2种
1.push 按钮//初始化push按钮- (void)initPushButton{ UIButton *pushButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; pushButton.frame = CGRectMake(100, 100, 200, 40); [pushButton addTarg原创 2015-06-06 14:18:14 · 365 阅读 · 0 评论 -
iOS开发UI篇—懒加载
iOS开发UI篇—懒加载iOS开发UI篇—懒加载1.懒加载基本懒加载——也称为延迟加载,即在需要的时候才加载(效率低,占用内存小)。所谓懒加载,写的是其get方法.注意:如果是懒加载的话则一定要注意先判断是否已经有了,如果没有那么再去进行实例化2.使用懒加载的好处:(1)不必将创建对象的代码全部写在viewDidLoad方法中,代码的可读性更强(2)每个控件的getter方法中分别负责各自的实例化处转载 2015-06-06 15:09:55 · 265 阅读 · 0 评论 -
ios 三级控制器 标签栏
1.标签栏的建立 需要是建立 rootViewController类//初始化视图控制器- (void) initViewController{ ProfileViewController *profileVC = [[ProfileViewController alloc]init]; MessageViewController *messageVC = [[Messag原创 2015-06-06 14:29:31 · 385 阅读 · 0 评论 -
通讯录 ios
1.输入改变 使能- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //添加观察者 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(原创 2015-06-06 15:00:27 · 323 阅读 · 0 评论