码迷,mamicode.com
首页 >  
搜索关键字:uitableview delete按钮    ( 2136个结果
UI基础之UITableView案例微博----自定义cell利用代码
第一步:创建微博模型,完成字典转模型#import //#import /** * 第一步:创建微博模型,完成字典转模型 */@interface LLWeiBo : NSObject/** * icon */@property (nonatomic, copy) NSString *icon;.....
分类:其他好文   时间:2014-11-28 17:54:24    阅读次数:257
[转]iOS8 自动调整UITableView和UICollectionView布局
转自:http://www.cocoachina.com/industry/20140825/9450.html(via:玉令天下的Blog)本文讲述了UITableView、UICollectionView实现 self-sizing cell 布局的知识,以及如何用 InvalidationCo...
分类:移动开发   时间:2014-11-28 15:42:58    阅读次数:292
点击cell时动画效果
效果图:工程图:代码:RootViewController.h#import @interface RootViewController : UIViewController{ UITableView *myTableView;}@endRootViewController.m#import ...
分类:其他好文   时间:2014-11-28 14:19:05    阅读次数:256
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!