if (ios_Vewsion_5_Or_Above) {//iOS 5系统之后的版本
self.tableView.bounces =
NO;
} else {
for (id subview
in self.tableView.subviews)
if ([[subview
class] isSubclassOfCl...
分类:
其他好文 时间:
2014-07-22 23:03:13
阅读次数:
281
- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ //1.取消选中这一行 [tableView
deselectRowAtIndexPath:indexPath.....
分类:
其他好文 时间:
2014-07-22 22:59:54
阅读次数:
216
今天,将和大家一起学习UICollectionView,UIcollectionView自出来后,一直受追捧,确实好用。今天有朋友问我如何添加heardView,我简单的回答:tableview如何添加,那么CollectionView就怎么添加,后来经过自己实验发现确实不是那回事,所以列出一些自己犯的错误,供大家参考。...
分类:
其他好文 时间:
2014-05-09 21:10:23
阅读次数:
448
TableView 跟换
Cell的顺序,同时这里提供了iOS7.0一下对UIView截图生存快照的方法,以及iOS7.0以上调用系统提供的快照生成方法···
分类:
移动开发 时间:
2014-05-09 08:54:50
阅读次数:
522
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.tableView
deselectRowAtIndexPath:[self.tableView
indexPathForSelectedRow] animated:YES];
}...
分类:
其他好文 时间:
2014-05-08 17:23:54
阅读次数:
261
-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(NSIndexPath*)indexPath{returnYES;}-(void)tableView:(UITableView*)tableViewcommitEditingStyle:(UITableViewCellEditingStyle)editingStyleforRowAtIndexPath:(NSIndexPath*)indexPath{if(editingStyle==U..
分类:
其他好文 时间:
2014-05-08 16:33:27
阅读次数:
205
1.通过xib自定义cell* 添加tableView* 加载团购数据* 新建xib,获取子控件*
封装* 最后引入headerView和footerView(插入广告,加载更多)2.通过代码自定义cell* 引入UITableViewController*
加载模型数据,用自带的cell展示基本数...
分类:
其他好文 时间:
2014-05-04 20:31:04
阅读次数:
430
每个section的row数量(都是从0下标开始)(http://blog.csdn.net/hmt20130412/article/details/20831377)
分类:
移动开发 时间:
2014-05-04 00:29:14
阅读次数:
322
-
(UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
returnUITableViewCellEdit...
分类:
移动开发 时间:
2014-05-01 13:30:30
阅读次数:
385
【转】-
(UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingStyleForRowAtIndexPath:(NSIndexPath
*)indexPath{returnUITableViewCellEditi...
分类:
其他好文 时间:
2014-05-01 11:57:48
阅读次数:
292