码迷,mamicode.com
首页 >  
搜索关键字:nib    ( 325个结果
loaded the "ViewController" nib but the view outlet was not set. 处理方式
报错:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the...
分类:其他好文   时间:2015-09-08 15:19:19    阅读次数:170
initWithFrame 和 initWithCoder
当我们所写的程序里没用用Nib文件(XIB)时,而是用代码来生成控件对像时是要调用initWithFrame去初始化- (id)initWithFrame:(CGRect)frame{ if(self=[superinitWithFrame:frame]) { // 初始化代码 } retur...
分类:其他好文   时间:2015-09-08 10:47:34    阅读次数:136
IOS第18天(2,CALayer自定义图层)
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // 创建一个图层 CALayer *laye...
分类:移动开发   时间:2015-09-06 18:17:49    阅读次数:156
- dequeueReusableCellWithIdentifier:
与之对应的还有一个方法:- dequeueReusableCellWithIdentifier:forIndexPath:1 > - dequeueReusableCellWithIdentifier:不能导入nib文件2> - dequeueReusableCellWithIdentifier:f...
分类:其他好文   时间:2015-09-05 20:43:32    阅读次数:151
UIViewController的生命周期及iOS程序执行顺序
当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序1、 alloc 创建对象,分配空间2、init (initWithNibName) 初始化对象,初始化数据3、loadView 从nib载入视图 ,通常这一步不需要去干涉。除非你...
分类:移动开发   时间:2015-09-02 14:47:45    阅读次数:192
[Objective-C] 019_UIVIewController
UIViewController是iOS程序中的一个重要组成部分,对应MVC设计模式的C,它管理着程序中的众多视图,何时加载视图,视图何时消,界面的旋转等。1.UIViewController 创建与初始化 [1].通过nib文件创建与初始化- (BOOL)application:(UIAppli....
分类:其他好文   时间:2015-08-31 00:47:09    阅读次数:236
Could not load NIB in bundle: 'NSBundle.....
学习NSNotification时遇到了这个问题,错误日志如下:2015-08-28 17:47:24.617 NSNotificationDemo[7158:786614] *** Terminating app due to uncaught exception 'NSInternalIncon...
分类:其他好文   时间:2015-08-28 19:42:26    阅读次数:166
UIView的各种方法介绍和生命周期
当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序 1、 alloc                                   创建对象,分配空间 2、init (initWithNibName) 初始化对象,初始化数据 3、loadView                          从nib载入视图 ,通常这一步不需要去干涉。除非你没有使用xib文件创建视图 ...
分类:其他好文   时间:2015-08-27 21:19:00    阅读次数:171
Objective-C:转载:NSBundle的具体介绍
NSBundle介绍:它是一个单例类,用来加载资源(2011-09-22 17:51:37)转载▼标签:杂谈分类:iOSbundle是一个目录,其中包含了程序会使用到的资源. 这些资源包含了如图像,声音,编译好的代码,nib文件(用户也会把bundle称为plug-in). 对应bundle,coc...
分类:其他好文   时间:2015-08-27 12:52:18    阅读次数:140
initWithFrame 和 initWithCoder
initWithFrame 和 initWithCoder当我们所写的程序里没用用Nib文件(XIB)时,用代码控制视图内容,需要调用initWithFrame去初始化- (id)initWithFrame:(CGRect)frame{ if (self =[superinitWithF...
分类:其他好文   时间:2015-08-26 19:39:58    阅读次数:243
325条   上一页 1 ... 13 14 15 16 17 ... 33 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!