码迷,mamicode.com
首页 >  
搜索关键字:uitableview sdk委托方法详    ( 2119个结果
UITableViewCell的重用机制
创建UITableViewController子类的实例后,IDE生成的代码中有如下段落:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ...
分类:其他好文   时间:2014-11-28 11:46:28    阅读次数:131
让cell默认选中第一行
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 自定义cell点击背景 cell.selectedBackgroundView =.....
分类:其他好文   时间:2014-11-27 18:07:28    阅读次数:126
自定义cell的点击背景
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 自定义cell点击背景 cell.selectedBackgroundView ...
分类:其他好文   时间:2014-11-27 17:47:45    阅读次数:119
An instance 0x172b8600 of class UITableView was deallocated while key value
从带有tableview并且使用Mj下拉刷新的视图调用popViewControllerAnimated的时候,控制台打印这个:An instance 0x15d7aa00 of class UITableView was deallocated while key value observers ...
分类:其他好文   时间:2014-11-27 12:15:56    阅读次数:228
《iOS 高级编程》之Tableview进阶指南
本章内容: ●    学习如何进阶使用UITableView,带给应用更高级的观感(look and feel) ●    学习如何开发自己定制的UITableView类,模仿iMessage应用的观感 ●    为一个基于分组的UITableView实现下钻逻辑     在iOS应用中呈现数据时,UITableView可能是最经常使用的用户界面对象。在本章中,将学习到以超越标...
分类:移动开发   时间:2014-11-27 10:49:39    阅读次数:204
得到UIView中某个非子视图在UIView中的位置
使用 convertRect: fromView: 或者 convertRect: toView:例如一个视图控制器的view中有一个UITableView,UITableView的某个cell中有个UITextField,想要得到UITextField在view中的位置,就要靠上面的两个方法了。用...
分类:其他好文   时间:2014-11-26 20:42:38    阅读次数:161
iOS 8 & Xcode 6:UITableView的一些问题及解决方案
1 在代码中使用默认UITableViewCell生成单元时,若事先没在viewDidLoad中注册,则不能使用dequeueReusableCellWithIdentifier: forIndexPath:方法,否则报错。如UITableViewCell *cell = [tableView de...
分类:移动开发   时间:2014-11-26 15:58:24    阅读次数:164
tableview中按钮的点击高亮效果
对ios8无效._myStateTableView.delaysContentTouches = NO;- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)index...
分类:其他好文   时间:2014-11-26 11:13:51    阅读次数:145
UI基础之UITableView的基本使用
UITableView控件1,基本使用(required)UITableView有两种样式:grouped/plain 组/单行UITableView需要?一个数据源(dataSource)来显示数据UITableView会向数据源查询一共有多少行数据以及每?行显示什么数据等没有设置数据源的UITa...
分类:其他好文   时间:2014-11-25 23:21:09    阅读次数:293
UITableVIew与UICollectionView带动画删除cell时崩溃的处理
UITableVIew与UICollectionView带动画删除cell时崩溃的处理-会崩溃的原因是因为没有处理好数据源与cell之间的协调关系-效果:tableView的源码:ModelCell.h +ModelCell.m//// ModelCell.h// Set//// Create...
分类:其他好文   时间:2014-11-25 23:03:12    阅读次数:508
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!