码迷,mamicode.com
首页 >  
搜索关键字:nib    ( 325个结果
UITableView中registerClass: forCellReuseIdentifier:的用法
你已经用NIB做了一个Cell,或者自定义了一个Cell。我们在你创建UITableView的时候,就可以顺带self.tableView.backgroundColor = xxxx;[self.tableView registerClass:[CustomCell class] forCellR...
分类:其他好文   时间:2015-06-12 11:36:18    阅读次数:182
View Controller 生命周期的各个方法的用法
loadView;This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.这是当他们没有正在使用nib...
分类:其他好文   时间:2015-06-10 20:57:00    阅读次数:174
NSBundle介绍
转载自http://blog.sina.com.cn/s/blog_8c87ba3b0100t89v.htmlbundle是一个目录,其中包含了程序会使用到的资源. 这些资源包含了如图像,声音,编译好的代码,nib文件(用户也会把bundle称为plug-in). 对应bundle,cocoa提供了...
分类:其他好文   时间:2015-05-30 12:09:54    阅读次数:142
UIViewController XIB/NIB加载过程
UIViewController中关于nib初始化的函数- (id)initWithNibName:(NSString*)nibNameOrNil bundle:(NSBundle*)nibBundleOrNil;从这个函数的说明我们可以知道,如果你subclass一个UIViewControlle...
分类:其他好文   时间:2015-05-26 20:40:16    阅读次数:153
IOS大图片处理(附源码)
大图片处理 ViewController.m -------------------------------------------------- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. /...
分类:移动开发   时间:2015-05-24 20:28:19    阅读次数:162
loaded the "XXXView" nib but the view outlet was not set 解决方案
'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXXView" nib but the view outlet was not set.'查书才知道,没有做nib文件到xxxViewControler程序的关联,特此记录...
分类:其他好文   时间:2015-05-20 21:56:37    阅读次数:122
loaded the "xxxViewController" nib but the view outlet was not set.'
今天遇到这个问题 loaded the “TestViewController” nib but the view outlet was not set.’ 解决办法点击xib文件的File’s Owner在右边的class文件写上自定义的类按着ctrl点击File’s Owner,将View连接xib文件视图...
分类:其他好文   时间:2015-05-17 18:41:09    阅读次数:181
UITableViewCell 复用
1从xib中加载cell ?static?NSString?*Identifier?=?@"CellID"; ????if(!nib){ ????????nib?=?[UINib?nibWithNibName:@"NewsCell"?bundle:nil]; ????????[tableView?registerNib:n...
分类:其他好文   时间:2015-05-08 15:16:56    阅读次数:133
解决IOS could not load NIB in bundler
就在刚刚IOS运行的时候出现一个问题,就是在TableViewController中加载TableViewCell时不能加载nib文件。 然后就百度了一下,大部分说是loadNibNamed:@"nib名字" 时nib名字写错了,当然这也是一个问题, 但是我的...
分类:移动开发   时间:2015-05-06 09:23:49    阅读次数:210
两种不同的编写方式
今天我知道了有两种方式进行编辑代码,一种是nib(比较简单),一种是纯代码。纯代码需要掌握各种方法,而nib只需要进行各种托控件之累的。然后在添加一些代码进行连接起来。NSArray*views=[[NSBundlemainBundle]loadNibNamed:@"View"owner:selfo...
分类:其他好文   时间:2015-05-05 18:38:29    阅读次数:134
325条   上一页 1 ... 20 21 22 23 24 ... 33 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!