在 4.0 之后,系统就有了它自己的类(NSRegularExpression,NSRegularExpression)来使用正则表达式,,之前都是要添加第三方类库 RegexKitLite 来使用这两个类的简单使用:[cpp]view plaincopyNSString*str=@"3sdfh*odsi";//匹配第一个字符是数字NSRegularExpression*regex1=[NSRegularExpressionregularExpressionWithPattern:@"\\b\\d.*"options:0error:nil];if(reg Read More
posted @ 2013-12-17 11:39 leevaboo Views(132) Comments(0) Diggs(0)
userArray = [[NSMutableArrayalloc] initWithContentsOfFile:[[NSBundlemainBundle] pathForResource:@"UserList"ofType:@"plist"]]; Read More
posted @ 2013-12-17 10:46 leevaboo Views(140) Comments(0) Diggs(0)