码迷,mamicode.com
首页 >  
搜索关键字:nsinteger    ( 574个结果
iOS开发UI篇—UITableview控件使用小结
iOS开发UI篇—UITableview控件使用小结一、UITableview的使用步骤UITableview的使用就只有简单的三个步骤:1.告诉一共有多少组数据方法:- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;...
分类:移动开发   时间:2015-05-19 18:23:37    阅读次数:136
tableview 代理方法详解
typedef NS_ENUM(NSInteger, UITableViewCellAccessoryType) { UITableViewCellAccessoryNone, // 不显示任何图标 UITableViewCellAccessoryDi...
分类:其他好文   时间:2015-05-17 13:28:50    阅读次数:96
IOS NSUserDefaults-轻量级本地数据存储
IOS NSUserDefaults-轻量级本地数据存储 IOS 针对用户数据持久化处理提供了多种处理方式:NSUserDefaults、plist 以及 sqlite3 数据库 都是很不错的选择! NSUserDefaults 是一种轻量级本地数据存储,操作方便,但仅支持Bool、Float、NSInteger、Object、Double、Url 这六种数据类型的存储 NSUserDefa...
分类:移动开发   时间:2015-05-16 20:38:27    阅读次数:209
UITableViewCell 单元格样式
UITableViewCell单元格样式作用1 typedef NS_ENUM(NSInteger, UITableViewCellStyle) {2 UITableViewCellStyleDefault, // Simple cell with text label and opt...
分类:其他好文   时间:2015-05-16 01:30:06    阅读次数:117
ios图片拉伸两种方法
UIImage *image = [UIImage imageNamed:@"qq"];第一种: // 左端盖宽度 NSInteger leftCapWidth = image.size.width * 0.5f; // 顶端盖高度 NSInteger topCapHeight ...
分类:移动开发   时间:2015-05-15 19:52:43    阅读次数:151
[iOS]用instancetype代替id作返回类型有什么好处?
苹果在iOS 8中全面使用instancetype代替idSteven Fisher:只要一个类返回自身的实例,用instancetype就有好处。@interface Foo:NSObject - (id)initWithBar:(NSInteger)bar; // initializer + (...
分类:移动开发   时间:2015-05-15 19:29:24    阅读次数:120
iOS NSMutableURLRequest 上传图片
- (void)postImage:(UIImage *)_image{ //分界线的标识符 NSString *TWITTERFON_FORM_BOUNDARY = @"AaB03x"; //根据url初始化request NSInteger schoolID = [[Ba...
分类:移动开发   时间:2015-05-13 18:55:13    阅读次数:135
获取IOS所有字体名字
NSArray?*familyNames?=?[[NSArray?alloc]?initWithArray:[UIFont?familyNames]]; ????NSArray?*fontNames; ????NSInteger?indFamily,?indFont; ????for?(indFamily=0;?indFamily<[family...
分类:移动开发   时间:2015-05-12 23:13:34    阅读次数:323
iOS滑动tableView来改变导航栏的颜色
- (void)viewDidLoad {     [super viewDidLoad];     [self initTableView]; } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{     return 1; } - (NSInteger)tableView:(UITableView...
分类:移动开发   时间:2015-05-08 18:12:39    阅读次数:115
关于UITableView的若干方法-15-05-07
1— self.carTableView.dataSource = self; ——要设置数据源才能进行对列表相关设置。2—-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView ...
分类:其他好文   时间:2015-05-07 23:41:54    阅读次数:110
574条   上一页 1 ... 37 38 39 40 41 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!