码迷,mamicode.com
首页 >  
搜索关键字:nsdate nsstring    ( 5023个结果
ios通知使用 书上案例 简单易懂
/* The notification name */const NSString *ResultOfAppendingTwoStringsNotification =@"ResultOfAppendingTwoStringsNotification"; /* Keys inside the dic...
分类:移动开发   时间:2014-06-27 20:38:41    阅读次数:229
iOS 获取本地视频的缩略图
+(UIImage *)getImage:(NSString *)videoURL{AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:[NSURL fileURLWithPath:videoURL] options:nil];AVAssetIma...
分类:移动开发   时间:2014-06-27 13:15:09    阅读次数:243
IOS开发- 用block实现回调
在IOS开发中经常会用到回调的情况,下面介绍如何用block实现回调。1 #import 2 3 @interface BLock : NSObject4 5 + (void)getBlock:(void (^)(NSString *))someblock;6 7 @endBLock.h 1 #im...
分类:移动开发   时间:2014-06-27 13:05:40    阅读次数:159
判断手机号,密码的正则表达式
//判断密码6-16位+ (BOOL)validatePassword:(NSString *)password{ NSString *Regex = @"^[a-zA-Z0-9]{5,16}$"; NSPredicate *emailTest = [NSPredicate pr...
分类:移动开发   时间:2014-06-26 23:34:10    阅读次数:258
NSString/NSMutableString常用函数
NSString / NSMutableString 字符串处理,常用代码 (实例)Objective-C 中核心处理字符串的类是 NSString 与 NSMutableString ,这两个类最大的区别就是NSString 创建赋值以后该字符串的内容与长度不能在动态的更改,除非重新给这个字符串赋...
分类:其他好文   时间:2014-06-26 21:43:51    阅读次数:320
留意 这两个 name,
- (BOOL)appendPartWithFileURL:(NSURL *)fileURL name:(NSString *)name fileName:(NSString *)fileName mimeType:(NSString *)m...
分类:其他好文   时间:2014-06-26 19:30:06    阅读次数:171
ios - cannot assign to 'self' outside of a method in the init family
今天重写 -(id) initwithId:(NSInteger *)word_id word:(NSString *)word detail:(NSString *)detail方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super in...
分类:移动开发   时间:2014-06-26 15:17:17    阅读次数:638
植物大战僵尸
#import @interface CommonZomble : NSObject { NSString * _zombleKind;//僵尸种类 NSInteger _totalBloodVolume;//总血量 NSInteger _everyTimeBloodloss;//每次被攻击的血量 NSInteger _residualVolume;//剩余血量...
分类:其他好文   时间:2014-06-26 11:56:39    阅读次数:181
自学ios:third day Objective-C 常用class
NSString:它的实例可以包含任意的Unicode字符eg:NSString*name=@"jethro";//@"..."是一种oc简化写法
分类:移动开发   时间:2014-06-26 06:10:39    阅读次数:241
NSString 的常用方法
NSString的常用方法创建一个新字符串并将其设置为 path 指定的文件的内容,使用字符编码enc,在error上返回错误+ (id)stringWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSErro...
分类:其他好文   时间:2014-06-25 14:37:29    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!