码迷,mamicode.com
首页 >  
搜索关键字:nsstring    ( 4622个结果
How to insert a character into a NSString
How do I insert a space to a NSString.I need to add a space at index 5 into:NString * dir = @"abcdefghijklmno";To get this result:abcde fghijklmnowith...
分类:其他好文   时间:2014-07-14 21:12:21    阅读次数:175
NSString+NSStringForJava.m
// // NSString+NSStringForJava.m // NSStringCategory // // Created by Ryan Tang on 12-10-17. // Copyright (c) 2012年 E...
分类:编程语言   时间:2014-07-14 21:00:41    阅读次数:208
How to check if NSString begins with a certain character
How to check if NSString begins with a certain characterHow do you check if an NSString begins with a certain character (the character *).The * is an ...
分类:其他好文   时间:2014-07-14 20:51:24    阅读次数:177
ios 中使用SBJson拼接和解析json
1.ios解析json使用开源json包,项目地址:http://stig.github.com/json-framework/NSData * responseData = [respones responseData]; NSString * strResponser = [[NSString ...
分类:移动开发   时间:2014-07-14 15:52:20    阅读次数:187
ios如果写一个提示带动画的View,可以来引导用户行为
先上图: 这个UIView可以这样写: -(id)initWithFrame:(CGRect)frame backImage:(UIImage*)image msgStr:(NSString*)txt txtColor:(UIColor*)color{ self = [super initWithFrame:frame]; if (self)...
分类:移动开发   时间:2014-07-14 11:22:27    阅读次数:246
NSString_InstanceMethods
NSStringInheritsfrom:NSObjectConformsto:NSObject,NSMutableCopying,NSSecureCoding,NSCopyingstringByTrimmingCharactersInSet: Returnsanewstringmadebyremovingfrombothendsofthereceivercharacterscontainedinagivencharacterset.-(NSString*)stringByTrimmingCharacters..
分类:其他好文   时间:2014-07-13 14:20:11    阅读次数:149
IOS-Archiver文件归档(2)
Archiver是持久化数据的一种方式,他跟 Plist的区别在于他能持久化自定义对象。但他没Plist那么方便。 Archiver默认能持久化的数据有NSNumber,NSArray,NSDictionary,NSString,NSData,因为这几个对象已经实现了 协议。假设我们要实现一个对象的Archiver持久化 ,也必须实现该对象。...
分类:移动开发   时间:2014-07-12 23:24:17    阅读次数:345
ios NSURLRequest NSMutableURLRequest 数据请求
get 请求 #pragma mark - GET登录 - (void)getLogon { // 1. URL NSString *urlStr = [NSString stringWithFormat:@"http://localhost/login.php?username=%@&password=%@", self.userName.text, self.userPw...
分类:移动开发   时间:2014-07-12 22:44:33    阅读次数:267
ios上禁止输入表情
ios上禁止输入表情 + (BOOL)isContainsEmoji:(NSString *)string { __block BOOL isEomji = NO; [string enumerateSubstringsInRange:NSMakeRange(0, [string length]) options:NSStringEnumerationByComposed...
分类:移动开发   时间:2014-07-12 17:07:22    阅读次数:258
iOS面试集锦3
1.写一个NSString类的实现+(id)initWithCString:(c*****t char *)nullTerminatedCString encoding:(NSStringEncoding)encoding;+ (id) stringWithCString: (c*****t cha...
分类:移动开发   时间:2014-07-12 14:39:51    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!