字符串连接
chiefoforc
这个作者很懒,什么都没留下…
展开
-
字符串连接
总忘,记忆力减退。 NSString *movieLink = [NSString stringWithFormat:@"http://v.youku.com/player/getRealM3U8/vid/%@/type/mp4/v.m3u8",movieID]; 恩。就这样吧。原创 2012-08-21 13:50:27 · 321 阅读 · 0 评论 -
字符串查找
[NSString rangeOfString:].location返回一个NSUInteger,如果找不到这个子字符串,NSRange返回(NSNotFound,0),NSNotFound.location返回NSNotFound,即2147483647,即2^31-1。 An NSRange structure giving the location and length in原创 2013-04-19 16:07:05 · 654 阅读 · 0 评论