@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
在UITableView里面,选择了某一个cell以后,点击立刻取消该cell的选中状态,可以使用如下方法:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ //s...
分类:
其他好文 时间:
2014-10-26 11:32:06
阅读次数:
186
现在我们可以将上章节里面从服务器获取的json数据显示到界面上了,这里我们用UITableView来显示。首先我们自定义一个UITableViewCell,命名为NewsCell,操作步骤如下:这样会得到下面的文件:好了,cell制作完之后,我们开始初始化UITableView //tableVie...
分类:
编程语言 时间:
2014-10-24 20:41:44
阅读次数:
257
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{//返回两个分区 return 2;}-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSect....
分类:
其他好文 时间:
2014-10-24 20:33:09
阅读次数:
142
1.写一下UIButton与UITableView的层级结构
2.Cocoa的Foundation对象与Core Foundation对象通过什么关键字进行转换?这些关键字有什么区别?
3.KVO是什么?内部是怎么实现的?
4.是否可以把比较耗时的操作放在NSNotificationCenter中处理?为什么?应该如何处理?
5.利用NSOperation与NSOperationQ...
分类:
移动开发 时间:
2014-10-24 16:32:01
阅读次数:
196
一 .问题:你想用流畅直观的动画来移动和拖拽TableView中的cell和section方案: 用moveSection:toSection:方法把一个Section移动到新位置. 用moveRowAtIndexPath:toIndexPath:方法把一个cell从当前位置移动到新位置例子: .....
分类:
移动开发 时间:
2014-10-24 12:56:08
阅读次数:
262