摘要: NSMakeRange函数--这个函数比较特殊 返回一个NSRange的对象。NSMakeRanger(unsigned int location,unsigned int length);例如:NSRange range = NSMakeRanger(0,5);NSLog(@"location is %d,length is %d",range.location,range.length);下面这个例子,将输出IPANSString*homebrew =@"Imperial India Pale Ale (IPA)";// Starting at po 阅读全文
posted @ 2013-07-15 19:08 古木木 阅读(367) 评论(0) 推荐(0)