码迷,mamicode.com
首页 >  
搜索关键字:nsinteger    ( 574个结果
Foundation/Foundation.h框架入门1-C与OC数据类型转换
#import int main(int argc, const char * argv[]) { @autoreleasepool { int a=6; float b=7.8; double d=5.6; NSInteger c=9;...
分类:其他好文   时间:2016-01-06 21:36:05    阅读次数:159
ios碎片小记
一、UIImageView1.图片形状设为圆形时可能会由于图片的宽高比例导致显示出来的效果不是圆形解决:设置UIImageView的contentMode为UIViewContentModeScaleAspectFillContentMode属性typedef NS_ENUM(NSInteger, ...
分类:移动开发   时间:2016-01-06 19:43:53    阅读次数:155
UIActionSheet--从相册去出照片进行涂抹,截图保存到相册的demo完成
在继承UIView 创建PIDrawerView类,.m中申明一个枚举类型NS_ENUM,set 与get 画线类型DrawingMode和颜色设置UIColor#import typedef NS_ENUM(NSInteger, DrawingMode) { DrawingModeNone = ....
分类:其他好文   时间:2016-01-06 09:11:23    阅读次数:200
UITableView的简单使用
UITableView代理的数据源中有三个比较常用的方法1 返回多少组-(NSInteger)numberOfSextionsInTableView:(UITableView *)tableView2 根据组返回行- (NSInteger) tableView:(UITableView *)tabl...
分类:其他好文   时间:2016-01-06 00:20:13    阅读次数:114
五:多线程--NSOperation基本操作
一、并发数 (1)并发数:同时执?行的任务数.比如,同时开3个线程执行3个任务,并发数就是3 (2)最大并发数:同一时间最多只能执行的任务的个数。 (3)最?大并发数的相关?方法 - (NSInteger)maxConcurrentOperationCount; - (void)s...
分类:编程语言   时间:2016-01-04 06:37:45    阅读次数:208
与时间相关NSCalendar、NSDate类的基本使用
1.解决获取NSDate的时间不对NSDate *nowDate = [NSDate date]; NSTimeZone *localTimeZone = [NSTimeZone localTimeZone];NSInteger ti = [localTimeZone secondsFromGMTF...
分类:其他好文   时间:2016-01-03 19:31:43    阅读次数:149
简单的选择切换视图
简单的选择切换视图,自定义选择类目和默认类目。SelectiveView.h#import @protocol SelectiveViewDelegate //此代理方法中可做数据切换等操作- (void)selectiveTag:(NSInteger)selectiveTag;@end@inter...
分类:其他好文   时间:2015-12-29 11:05:29    阅读次数:133
Values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead
苹果app支持arm64以后会有一个问题:NSInteger变成64位了,和原来的int(%d)不匹配,会报如下warning,Values of type 'NSInteger' should not be used as format arguments; add an explicit cas...
分类:其他好文   时间:2015-12-28 06:11:35    阅读次数:460
int、 NSInteger、 NSUInteger、NSNumber之间的区别和联系
int、 NSInteger、 NSUInteger、NSNumber之间的区别和联系int : 当使用int类型定义变量的时候,可以像写C程序一样,用int也可以用NSInteger,推荐使用NSInteger ,因为这样就不用考虑设备是32位还是64位了。NSUInteger是无符号的,即没有....
分类:其他好文   时间:2015-12-27 14:35:52    阅读次数:155
IOS UI-Button按钮
1 #import "ViewController.h" 2 3 @interface ViewController () 4 { 5 UILabel *lable; 6 BOOL moveFlag; 7 NSInteger length; 8 UIButton ...
分类:移动开发   时间:2015-12-25 20:42:30    阅读次数:237
574条   上一页 1 ... 16 17 18 19 20 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!