码迷,mamicode.com
首页 >  
搜索关键字:uitableview delete按钮    ( 2136个结果
ios - iPhone开发重构:提取方法以调整抽象层次
写代码有时和说话一样,要体现层次感,可能是首先罗列要点,然后再逐点 细化。但如果时而说要点,时而谈细节,就会造成听者理解上的障碍。如下的代 码就会有这样的一个问题:重构前:- (UITableViewCell *)tableView:(UITableView *)tableView cellForR...
分类:移动开发   时间:2014-09-05 00:52:30    阅读次数:216
iOS_29仿微信聊天界面
最终效果图: 自定义cell的封装 BeyondCell // // BeyondCell.h // 29_仿微信聊天 // // Created by beyond on 14-9-4. // Copyright (c) 2014年 com.beyond. All rights reserved. // #import @class Beyo...
分类:微信   时间:2014-09-04 22:21:10    阅读次数:488
UITableView的常用代理方法
//设置行高-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)indexPath{return80;}//分区-(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView{//Returnthenumberofsections.return3;}//设置每个区有多少行共有多少行-(NSInteg..
分类:其他好文   时间:2014-09-04 11:59:50    阅读次数:221
手机通讯录的实现
首先重写UITableViewCell的初始化方法:- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (...
分类:移动开发   时间:2014-09-04 09:46:27    阅读次数:195
UITableView的UITableViewStyleGrouped
UITableView的UITableViewStyleGrouped以下图例就是分组UITableViewStyleGrouped的样式本人提供快速集成的方法,不弄脏你那双手:)源码:TableViewData.h//// TableVewData.h// Sections//// Copy...
分类:其他好文   时间:2014-09-02 00:03:13    阅读次数:352
面向对象程序设计简介(1/2)
在使用 Cocoa 和 Objective-C 进行编程的时候,最让人感到困惑的就是面向对象编程。几乎所有的现代编程语言都是面向对象的,学习面向对象的概念和模式对你读写代码都会带来很大的帮助。UITableView和UIScrollView或者NSString和NSMutableString之间的关...
分类:其他好文   时间:2014-09-01 19:33:33    阅读次数:468
第4课、UITableView专题(五)
目标: 主从表关系 : 点击“省份名称” - 显示“城市列表”#import "MainTableViewController.h"#import "ShiTableViewController.h"@interface MainTableViewController ()//省份数组@prope....
分类:其他好文   时间:2014-09-01 15:25:53    阅读次数:154
第4课、UITableView专题(四)
重构下单元格方法#pragma mark 单元格内容-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{// UITableViewCell...
分类:其他好文   时间:2014-09-01 13:57:23    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!