码迷,mamicode.com
首页 >  
搜索关键字:uiviewcontroller    ( 1229个结果
swift 实践- 14 -- UIScrollView
import UIKit class ViewController: UIViewController ,UIScrollViewDelegate{ override func viewDidLoad() { super.viewDidLoad() let scrollView = UIScroll ...
分类:编程语言   时间:2017-06-12 11:46:49    阅读次数:268
减少UIViewController切换的耦合
我们一般切换UIViewController的时候用的是例如以下代码 #import "UIViewControllerDemo.h" UIViewControllerDemo *vc = [UIViewControllerDemo alloc] initWithNibName:nil bundle ...
分类:其他好文   时间:2017-06-11 10:29:08    阅读次数:209
IOS经常使用的性能优化策略
1、用ARC管理内存 2、对于UITableView使用重用机制 3、UIView及其子类设置opaque=true 4、主进程是用来绘制UI的,所以不要堵塞 5、慎用XIB,由于XIB创建UIViewController时。会将xib上的全部内容导入到内存 6、选择正确集合 Arrays:有序的值 ...
分类:移动开发   时间:2017-06-10 16:55:45    阅读次数:179
swift 实践- 11 -- UISlider
import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let slider = UISlider.init(frame: CGRect.init( ...
分类:编程语言   时间:2017-06-09 19:26:38    阅读次数:167
swift 实践- 04 -- UIButton
import UIKit class ViewController: UIViewController { // 按钮的创建 // UIButtonType.system: 前面不带图标, 默认文字为蓝色,有触摸时的高亮效果 // UIButtonType.custom: 定制按钮,前面不带图标, ...
分类:编程语言   时间:2017-06-09 15:27:40    阅读次数:232
swift 实践- 03 -- UILabel
class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // 标签 let label: UILabel = UILabel(frame: CGRect(x: 100, y: ...
分类:编程语言   时间:2017-06-09 14:13:54    阅读次数:128
OC学习小结之ios运行过程详解
1)ios核心类 UIView 视图,屏幕上能看得见的东西都是视图,例如:按钮、文本标签、和表格等 UIViewController:内部默认有个视图(UIView),负责管理UIView的生命周期、装配数据到UIView上显示、处理其事件 ios采用MVC模式:model -view -contr ...
分类:移动开发   时间:2017-06-07 22:24:26    阅读次数:236
swift 动态设置UILabel的高度
import UIKit class ViewController3: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor=UIColor.whiteColor( ...
分类:编程语言   时间:2017-06-05 11:33:46    阅读次数:194
UIViewController生命周期控制
UIViewController生命周期控制 UIViewController介绍 官方的介绍例如以下 The UIViewController class provides the fundamental view-management model for all iOS apps. You ra ...
分类:其他好文   时间:2017-06-04 11:42:30    阅读次数:130
UIViewController中各方法调用顺序及功能详解
UIViewController中各方法调用顺序及功能详解 UIViewController中各方法调用顺序及功能详解 UIViewController中loadView, viewDidLoad, viewWillUnload, viewDidUnload, viewWillAppear, vie ...
分类:其他好文   时间:2017-06-02 17:40:20    阅读次数:188
1229条   上一页 1 ... 9 10 11 12 13 ... 123 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!