1.创建nib文件 cell.xib2.在nib中拖一个UITableView出来,设置其reuse Identifier,再根据cell UI需要拖出view摆放好3.创建ViewController及tableview4.创建TableView在ViewController中的输出口(IBOut...
分类:
其他好文 时间:
2015-12-27 23:28:04
阅读次数:
185
一、效果图二、代码- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.title = @"背景颜色的随...
分类:
移动开发 时间:
2015-12-27 10:52:49
阅读次数:
176
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UITextField *text...
分类:
移动开发 时间:
2015-12-27 10:45:22
阅读次数:
208
一、直接看Bug:unable to dequeue a cell with identifier cell_id - must register a nib or a class for the identifier or connect a prototype cell in a storybo...
分类:
其他好文 时间:
2015-12-25 13:12:24
阅读次数:
427
我在之前多篇博客中讲解了在不使用storyboard而使用nib文件的情况下,使用代码生成导航栏并进行跳转,具体可以参考《iOS开发——界面跳转与返回及视图类型详解》《iOS纯代码实现界面建立、跳转、导航栏(无storyboard、无nib)(Objective-C)》。今天我来讲解下在使用nib搭建界面的情况下,用代码生成TabBar,并进行界面之间的跳转。代码示例已经上传至:https://g...
分类:
移动开发 时间:
2015-12-22 21:28:34
阅读次数:
203
问题: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] load....
分类:
其他好文 时间:
2015-12-22 07:53:55
阅读次数:
211
Nib文件是一种特殊类型的资源文件,它用于保存iPhone OS或Mac OS X应用程序的用户接口。Nib文件是Interface Builder文档。通常您会使用Interface Builder设计应用程序的可视部分-例如窗口或视图。有些时候,您可能也用它来配置一些不可视的对象,例如控制器对象...
分类:
其他好文 时间:
2015-12-18 16:10:42
阅读次数:
122
转:http://my.oschina.net/joanfen/blog/151145一、iOS沙盒机制iOS的应用只能访问为该应用创建的区域,不可访问其他区域,应用的其他非代码文件都存在此目录下,包括图片,属性文件plist,bundle,nib文件等,这块区域称之为沙盒(sandBox)。每个应...
分类:
移动开发 时间:
2015-12-17 20:36:54
阅读次数:
366
首先在viewDidLoad- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //设置允许摇一摇功能 [[UIApp....
分类:
其他好文 时间:
2015-12-16 15:37:35
阅读次数:
151
在看精通IOS开发一书的UITableView时候遇到这个问题, UITableView *tableView = (id)[self.view viewWithTag:1]; tableView.rowHeight = 65; UINib *nib = [UINib nibWithNib...
分类:
其他好文 时间:
2015-12-14 18:31:13
阅读次数:
206