码迷,mamicode.com
首页 >  
搜索关键字:nsstring    ( 4622个结果
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
TabelViewCell自适应高度
1.首先,设置 cell 中显示文本的容器(这里假设是 Label)的一些属性,如下: [_Label setNumberOfLines:0]; //这个是设置 label 内文本的行数,0 代表自适应 [_Label setLineBreakMode:NSLineBreakByWordWrapping]; //断行模式 [_Label setFont:[UIFon...
分类:其他好文   时间:2014-06-27 09:13:12    阅读次数:201
ios网络学习------2 用非代理方法实现异步post请求
#pragma mark - 这是私有方法,尽量不要再方法中直接使用属性,因为一般来说属性都是和界面关联的,我们可以通过参数的方式来使用属性 #pragma mark post登录方法 -(void)loginWithPostWithName:(NSString *)userName pwd:(NSString *)pwd { //1确定地址NSURL NSString *url...
分类:移动开发   时间:2014-06-27 07:42:35    阅读次数:287
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!