1、文件有xib或者从属的stroybord:可以对其UITableView中TableView(content)和TableViewCell(style,image,identifier,accessory)设置,改变其属性,查看其显示的状态。2、封装成Sample.plist的格式: NSStr...
分类:
其他好文 时间:
2014-10-29 19:03:32
阅读次数:
170
转自:http://blog.csdn.net/iosevanhuang/article/details/8830499今天以前的同事在开发过程中遇到了一个问题,大致描述如下:他用TableView写了一个登陆界面,帐号和密码两个Cell中加入了TextField。由于想在TableView的空白处...
分类:
移动开发 时间:
2014-10-28 19:41:46
阅读次数:
200
本文转载至http://www.cocoachina.com/ios/20140922/9717.htmliOS开发Dynamic TypeSelf Sizing在iOS 8中,苹果引入了UITableView的一项新功能--Self Sizing Cells,对于不少开发者来说这是新SDK中一项非...
分类:
移动开发 时间:
2014-10-28 17:37:33
阅读次数:
214
UITableView的两种内置样式UITableViewStylePlain UITableViewStyleGrouped 协议UITableViewDataSource必须实现两个方法cellForRowAtlndexPath和...
分类:
其他好文 时间:
2014-10-28 00:23:19
阅读次数:
252
UITableViewController 继承自ViewController,TableViewController自动给我们添加了dataSource和delegate。 里面只有一个UITableView 1、UITableViewController内部默认会创建一个UITableView ...
分类:
其他好文 时间:
2014-10-28 00:23:06
阅读次数:
211
@interfaceViewController()@end@implementationViewController- (void)viewDidLoad { [superviewDidLoad]; }#pragma mark -一共一组- (NSInteger)numberOfSections....
分类:
其他好文 时间:
2014-10-28 00:20:50
阅读次数:
192
初学者的问题主要集中在,下面几个问题:一、几个函数总是不被调用:例如:- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;这个代理不被调用的种类很多:1. section的c...
分类:
其他好文 时间:
2014-10-27 19:20:30
阅读次数:
201
1.写一下UIButton与UITableView的层级结构2.Cocoa的Foundation对象与Core Foundation对象通过什么关键字进行转换?这些关键字有什么区别?3.KVO是什么?内部是怎么实现的?4.是否可以把比较耗时的操作放在NSNotificationCenter中处理?为...
分类:
移动开发 时间:
2014-10-27 18:57:45
阅读次数:
176
1 : tableview中headerview总保持在屏幕上方 : 在代理方法中创建view,并添加到headerview上
l例子:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
if ([self.title isEqualToString...
分类:
移动开发 时间:
2014-10-27 17:46:17
阅读次数:
427
初学者的问题主要集中在,下面几个问题:
一、几个函数总是不被调用:例如:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
这个代理不被调用的种类很多:
1. section的count没有正确
2. 没有设置代理
3.如果没有设置seciton的高度,仍然...
分类:
其他好文 时间:
2014-10-27 14:25:20
阅读次数:
120