码迷,mamicode.com
首页 >  
搜索关键字:nsinteger    ( 574个结果
UISegment
UISegment分段控制属性1.segmentedControlStyle设置segment的显示样式。typedefNS_ENUM(NSInteger, UISegmentedControlStyle) {UISegmentedControlStylePlain,// large plain系统...
分类:其他好文   时间:2015-08-28 19:25:12    阅读次数:101
UIPikerView
UIPikerView的属性1.numberOfComponents:返回UIPickerView当前的列数NSIntegernum =_pickerView.numberOfComponents;NSLog(@"%d", num);2. - (NSInteger)numberOfRowsInCom...
分类:其他好文   时间:2015-08-28 19:22:39    阅读次数:135
UITableView
UITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped协议##UITAbleeViewDataSource协议//调用数据源的下面方法得知一共有多少组数据- (NSInteger)numberOfSectionsInTable...
分类:其他好文   时间:2015-08-28 19:03:01    阅读次数:137
获取当前是今年的第几周
NSCalendar * calendar = [NSCalendar currentCalendar];     NSDate * currentDate = [NSDate date];     NSInteger week = [calendar ordinalityOfUnit:NSCalendarUnitWeekday inUnit:NSCalendarUnitYea...
分类:其他好文   时间:2015-08-28 13:21:09    阅读次数:126
strong,weak, retain, assign的区别
strong与weak是由ARC新引入的对象变量属性  xcode 4.2(ios sdk4.3和以下版本)和之前的版本使用的是retain和assign,是不支持ARC的。xcode 4.3(ios5和以上版本)之后就有了ARC,并且开始使用  strong与weak  assign: 用于非指针变量。用于  基础数据类型 (例如NSInteger)和C数据类型(int,...
分类:其他好文   时间:2015-08-27 13:28:18    阅读次数:188
UIPageControl 的用法
会自动生成frame,可以设置其中心点center 来布局 @property(nonatomic) NSInteger numberOfPages;????????? @property(nonatomic) NSInteger currentPage; 设置页数通过numberOfPages属性设置, curren...
分类:其他好文   时间:2015-08-27 11:23:27    阅读次数:147
【iOS开发系列】将阿拉伯数字转换为中文数字
/** * 将阿拉伯数字转换为中文数字 */ +(NSString *)translationArabicNum:(NSInteger)arabicNum { NSString *arabicNumStr = [NSString stringWithFormat:@"%ld",(long)arabicNum]; NSArray *arabicNumeralsArray = @...
分类:移动开发   时间:2015-08-26 13:57:50    阅读次数:208
几个容易混淆的对齐概念
文本的水平对齐方式 NSTextAlignment UITextField,UILabel等带有文字的控件 NSTextAlignmentLeft 左对齐 NSTextAlignmentRight 右对齐 NSTextAlignmentCenter居中 typedef?NS_ENUM(NSInteger,?NSTextAlignment...
分类:其他好文   时间:2015-08-25 12:57:40    阅读次数:126
UITableView的常用代理方法
//设置行高 - (CGFloat)tableView:(UITableView )tableView heightForRowAtIndexPath:(NSIndexPath )indexPath{return 80; } //分区 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Ret...
分类:其他好文   时间:2015-08-21 15:37:52    阅读次数:87
IOS屏幕旋转
加速计是整个IOS屏幕旋转的基础,依赖加速计,设备才可以判断出当前的设备方向,IOS系统共定义了以下七种设备方向: typedef NS_ENUM(NSInteger, UIDeviceOrientation) {     UIDeviceOrientationUnknown,     UIDeviceOrientationPortrait,            // Device o...
分类:移动开发   时间:2015-08-20 15:20:17    阅读次数:262
574条   上一页 1 ... 25 26 27 28 29 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!