随笔分类 -  iPhone开发必知知识点

摘要:NSString *str1 = @"我台资深屌丝鲁大炮表示不服"; NSString *str2 = @"鲁大炮"; ////在str1这个字符串中找"鲁大炮",判断有没有 if([str1 rangeOfString:str2].location != NSNotFound){ NS... 阅读全文
posted @ 2015-05-15 16:09 许文斌 阅读(7804) 评论(0) 推荐(1)
摘要:1 [[UIImage imageNamed:@"button_textured_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)];其中Insets这个参数的格式是(top,left,bottom,right),从上、左、下... 阅读全文
posted @ 2015-04-17 12:25 许文斌 阅读(179) 评论(0) 推荐(0)
摘要:- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图... 阅读全文
posted @ 2015-04-17 12:06 许文斌 阅读(157) 评论(0) 推荐(0)