nsstring hasprefix に問題があります
例えば。私はこのような文字列を持っています
NSString *data= @"NZDIDR,NZDIDR,9571,9593,9571,IDR,2013-09-23 21:45:25.0,CUR",
if([clean hasPrefix:@"CUR"]||[clean hasPrefix:@"cur"]){
NSLog(@"yep! there is CUR");
}
else{
NSLog(@"no there is!");
}
結果は「はい、CURがあります」となるはずですよね?そのエラーは私の方法ですか?