摘要:
-(void)dictionaryPrint{ NSArray *keys = [dic allKeys]; id key,value; for (int i = 0; i < [keys count]; i++) { key = [keys objectAtIndex:i]; value = [dic objectForKey:key]; //NSLog(@"Key:%@ -- %@",key,value); for (int j = 0; j<[value count]; j++) { NSString *str = [va... 阅读全文
posted @ 2012-11-26 12:13
hopeanCom
阅读(1435)
评论(0)
推荐(0)
摘要:
NSString *tmpStr = [[NSString alloc] initWithString:@"abcdefg"]; NSRange range; range = [tmpStr rangeOfString:@"a"]; if (range.location != NSNotFound) { NSLog(@"found at location = %d, length = %d",range.location,range.length); }else{ NSLog(@"Not Found"); }更多阅 阅读全文
posted @ 2012-11-26 11:30
hopeanCom
阅读(452)
评论(0)
推荐(0)
浙公网安备 33010602011771号