码迷,mamicode.com
首页 >  
搜索关键字:uitableview sdk委托方法详    ( 2119个结果
测试SDWebImage淡入淡出效果在UITableView中的重用显示问题
测试SDWebImage淡入淡出效果在UITableView中的重用显示问题这个是在上一篇教程的基础上所添加的测试环节!效果图(从效果图中看是没有任何重用问题的):源码:ImageCell.h 与ImageCell.m//// ImageCell.h// SDWebImageFade//// ...
分类:Web程序   时间:2014-10-05 10:06:38    阅读次数:313
[IOS]Type 'NSObject' does not conform to protocol 'NilLiteralConvertible'
在使用一个cell的时候发生的, func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableV...
分类:移动开发   时间:2014-10-04 19:12:06    阅读次数:223
05-UITableView(微博)
分类:其他好文   时间:2014-10-04 02:56:05    阅读次数:120
04-UITableView(固定行高)
分类:其他好文   时间:2014-10-04 01:35:45    阅读次数:294
监测uitableview 向上滑动和向下滑动的事件
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ CGFloat height = _varietyTableView.frame.size.height; CGFloat distanceFromButton = _vari...
分类:其他好文   时间:2014-09-28 19:03:43    阅读次数:165
ios swift tableview
import UIKitclass ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {@IBOutlet var myTable: UITableView?var typeArray:NSArr...
分类:移动开发   时间:2014-09-26 23:02:38    阅读次数:239
自定义UITableViewCell:Cell高度、分割线、间距等
UITableView的强大更多程度上来自于可以任意自定义UITableViewCell单元格。 通常,UITableView中的Cell是 动态的,在使用过程中,会创建一个Cell池,根据每个cell的高度(即tableView:heightForRowAtIndexPath:返回 值),以及屏幕高度计算屏幕中可显示几个cell。而进行自定义TableViewCell无非是采用代码实现或采...
分类:其他好文   时间:2014-09-26 22:49:59    阅读次数:245
UITableView使用指南
1) 初始化 UITableView对象– initWithFrame:style:// 代码生成方式,如果你在nib里加的tableview不需要使用这个方法2)配置TableView– dequeueReusableCellWithIdentifier:// 必须要实现的方法,与TableVie...
分类:其他好文   时间:2014-09-26 21:01:08    阅读次数:198
IOS UITableView表格视图详解
IOS表格视图类UITableView实现的协议:UITableViewDataSource,UITableViewDelegate必须实现下面的3个方法:-(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView{return1;}-(NSInteger)tableView:(UITableView*)tableViewnumberOfRowsInSection:(NSInteger)secti..
分类:移动开发   时间:2014-09-26 20:08:09    阅读次数:214
iOS 8 UITableViewCell 分割线 左对齐
//加入如下代码 -(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)indexPath{ if([tableViewrespondsToSelector:@selector(setSeparatorInset:)]){ [tableViewsetSeparatorInset:UIEdgeInsetsZero]; } if([t..
分类:移动开发   时间:2014-09-25 23:39:48    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!