码迷,mamicode.com
首页 >  
搜索关键字:sizeforitemat indexpath    ( 243个结果
swift tableview 侧滑删除
//返回编辑类型,滑动删除 func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle { return UIT ...
分类:编程语言   时间:2017-04-18 14:26:26    阅读次数:243
tableView 有点击效果 但是不让选中的方法
//反选 点击的时候灰色 返回来的时候 又变回白色-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath ...
分类:其他好文   时间:2017-04-07 18:06:44    阅读次数:211
首页功能添加(六)
本次加入了颜值类cell的自定义,同样是使用xib的方式,跟之前的普通cell的创建别无二致。添加这个也是水到渠成,但是要注意,这个cell的size跟之前cell的size的宽度虽然一样,但是高度是不同的。所以要记得需要选择不一样的size。先遵循UICollectionViewDelegateFlowLayout,记..
分类:其他好文   时间:2017-03-28 11:35:12    阅读次数:182
IOS AlterView的使用(IOS8.0以前使用)
#pragma mark - 代理方法 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // 1.取得被点击这行对应的模型 MJHero *hero = sel... ...
分类:移动开发   时间:2017-02-23 20:44:02    阅读次数:192
tableView里选中一行cell其它不选中的方法
方法1: #pragma mark--选中状态 -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { GASSelectNextTableViewCell *cell ...
分类:其他好文   时间:2017-02-17 10:17:18    阅读次数:224
在didSelectRowAtIndexPath 里面取cell的方法
选中了tableview的cell的某一行 -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { } UITableViewCell *cell = [tableVie ...
分类:其他好文   时间:2017-02-17 09:53:20    阅读次数:190
cell 滑动实现旋转动画效果
效果图(真机效果好一点.毕竟gif)tableView角度旋转动画.gif-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)indexPath{CATransform3Drotation; rotation=CATransform3DMakeRotation((90.0*M_PI)/180,0.0,0.7..
分类:其他好文   时间:2017-02-15 11:04:40    阅读次数:170
第3月30天 UIImage imageWithContentsOfFile卡顿
1. UIImage imageWithContentsOfFile卡顿 [[UIImage alloc] initWithContentsOfFile 卡顿 2.uitableview scroll to top NSIndexPath *indexPath = [NSIndexPath inde ...
分类:其他好文   时间:2016-12-30 13:26:45    阅读次数:220
如何得到自定义UITableViewCell中的按钮所在的cell的indexPath.row
在自定义UITableViewCell中创建了一个按钮。 在自定义UITableViewCell中创建了一个按钮。 想在点击该按钮时知道该按钮所在的cell在TableView中的行数。就是cell的 indexPath.row两种方法都很好。-(IBAction):(id)sender{ NSLo ...
分类:其他好文   时间:2016-12-17 11:38:36    阅读次数:172
弹出菜单
封装的一个方法 .h文件中 #import <UIKit/UIKit.h> @protocol LrdOutputViewDelegate <NSObject> @required - (void)didSelectedAtIndexPath:(NSIndexPath *)indexPath; @e ...
分类:其他好文   时间:2016-12-07 18:13:27    阅读次数:348
243条   上一页 1 2 3 4 5 ... 25 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!