使用的 ios 版本 9.3.1 中文语言typedef NS_ENUM(NSInteger, UIBarButtonSystemItem) {
UIBarButtonSystemItemDone,
UIBarButtonSystemItemCancel,
UIBarButtonSystemItemEdit,
UIBarButtonSystemItemSave,
UIBarButtonSys...
分类:
其他好文 时间:
2016-04-22 19:49:39
阅读次数:
163
关于ALAssetsLibrary的简单使用有两个方面: 第一:存储图片/视频方法如下: 简单说明: orientation为储存图片时的具体操作: typedef NS_ENUM(NSInteger, ALAssetOrientation) { ALAssetOrientationUp // de ...
分类:
移动开发 时间:
2016-04-20 20:08:51
阅读次数:
305
#import <Foundation/Foundation.h>//定义枚举typedef NS_ENUM(NSInteger){ LDT_GET, LDT_POST}URLRequestMethod;//定义返回值block网络请求结果typedef void(^ResultBlock)(NSD ...
分类:
其他好文 时间:
2016-04-16 10:44:36
阅读次数:
179
第一种方法
//用到image的这个方法- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight
//leftCapWidth:左边不拉伸区域 //topCapHeight:上面不拉伸区域 UIImage *image =[...
分类:
移动开发 时间:
2016-04-13 11:29:25
阅读次数:
185
NSDate *date=[NSDate date]; //创建了一个NSDATE对象 是一个0000时区的时间并不是我们当前的时间 //获取当前时间 NSTimeZone *timeZone=[NSTimeZone systemTimeZone];//返回一个系统的时区 NSInteger int ...
分类:
其他好文 时间:
2016-04-13 00:20:12
阅读次数:
183
使用assign:对基础数据类型(NSInteger)和C数据类型(int,float,double,char等)。使用copy:对NSString;使用retain(引起引用计数加1):对其他NSObject(实例对象)和其子类; 属性关系有两种主要类型:strong和weak,相当于非ARC环境 ...
分类:
其他好文 时间:
2016-04-09 21:50:00
阅读次数:
231
// 实例化对象的头文件 @property (nonatomic, strong)NSString *name;@property (nonatomic, assign)NSString *sex;@property (nonatomic, assign)NSInteger tel;@proper ...
分类:
移动开发 时间:
2016-03-31 23:35:10
阅读次数:
270
-(void)timeStr { NSDate *date = [NSDate date]; NSInteger unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour ...
分类:
其他好文 时间:
2016-03-30 12:28:35
阅读次数:
149
#if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64 typedef long NSInteger; typedef unsigned long NSUI
分类:
其他好文 时间:
2016-03-20 19:38:57
阅读次数:
196
初始化 UITextField *tf = [[UITextField alloc] init]; typedef NS_ENUM(NSInteger, UITextBorderStyle) { //没有任何边框 UITextBorderStyleNone, //线性边框 UITextBorderS
分类:
其他好文 时间:
2016-03-18 09:26:14
阅读次数:
238