效果图 : 点击编辑按钮: 点击添加按钮 点击小红点 点击Delete可以删除 点击右边的3横,按住上下拖动 可以改变物品栏的上下顺序代码:在APPDelegate.m 初始化窗口和添加导航控制器创建一个plist文件在V...
分类:
移动开发 时间:
2015-08-07 19:18:40
阅读次数:
139
MyTableViewCell.h文件(自定义ViewCell)的内容:MyTableViewCell.m的内容
分类:
移动开发 时间:
2015-08-07 18:54:38
阅读次数:
145
------------- ViewController.m -------------#import "ViewController.h"@interface ViewController () @property (weak, nonatomic) IBOutlet UITableView *t...
分类:
其他好文 时间:
2015-08-07 01:41:33
阅读次数:
92
问题: section header 向上滚动时,卡在导航栏下方【粘附性】》 创建tableView对象时,使用 group枚举类型问题: cell里面有 subView添加了手势点击事件后,cell不能被执行点击事件》 在subView的手势点击回调函数中,//手动执行tableView的cell...
分类:
其他好文 时间:
2015-08-07 01:40:09
阅读次数:
109
1.Push跳转- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellKey=@"cellKey...
分类:
其他好文 时间:
2015-08-06 21:47:22
阅读次数:
99
只刷新cell不刷新section,这问题还难住了一阵子需要用到:- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;- (void)del....
分类:
其他好文 时间:
2015-08-06 20:24:09
阅读次数:
129
定制UITableView中UITableViewCell点击颜色:self.selectionStyle=UITableViewCellSelectionStyleDefault;UIView*selectedBackgroundView=[[UIViewalloc]init];selectedBackgroundView.backgroundColor=[UIColorcolorWithHexString:@"#efefef"];self.selectedBackgroundView=se..
分类:
其他好文 时间:
2015-08-06 18:47:05
阅读次数:
133
本文转载自http://blog.csdn.net/reylen/article/details/47043571,顺便加了一些笔记 在通过 -tableView: viewForHeaderAtSection: 设置headerView,然后再去通过headerViewForSection取的时候 ,发现返回结果为...
分类:
其他好文 时间:
2015-08-06 15:20:34
阅读次数:
253
重载函数:-(NSArray *) sectionIndexTitlesForTableView: (UITableView *) tableView{ //dict allKeys取出的key arr无顺序,需进行排序 NSArray *arr = [[self.words allKeys] .....
分类:
其他好文 时间:
2015-08-05 22:11:14
阅读次数:
104
1.代理 UITableViewDelegate,UITableViewDataSource2.实现代理- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return 1; //分区数,默认为1}- (NSI...
分类:
其他好文 时间:
2015-08-05 21:42:13
阅读次数:
103