09 2015 档案

摘要:一、缩放1.简单说明:有些时候,我们可能要对某些内容进行手势缩放,如下图所示UIScrollView不仅能滚动显示大量内容,还能对其内容进行缩放处理。也就是说,要完成缩放功能的话,只需要将需要缩放的内容添加到UIScrollView中2.缩放原理当用户在UIScrollView身上使用捏合手势时,U... 阅读全文
posted @ 2015-09-24 09:45 frounk 阅读(211) 评论(0) 推荐(0)
摘要:最上级vc里面加 下级设置生效UIImage* image = [UIImage imageNamed:@"back_button.png"];[item setBackButtonBackgroundImage:[image resizableImageWithCapInsets:UIEdgeI... 阅读全文
posted @ 2015-09-19 18:06 frounk 阅读(182) 评论(0) 推荐(0)
摘要:if ([[dic allKeys] containsObject:key]) 阅读全文
posted @ 2015-09-19 12:58 frounk 阅读(1294) 评论(0) 推荐(0)
摘要:if (Label.text isEqual:[NSNull null]) 阅读全文
posted @ 2015-09-19 10:12 frounk 阅读(110) 评论(0) 推荐(0)
摘要:NSString *dictString = [dict JSONFragment];//组合成的。 dictString==={"content":"Sadgfdfg","phoneno":"","email":"1049055935@qq.com"}=== //... 阅读全文
posted @ 2015-09-12 10:09 frounk 阅读(8291) 评论(0) 推荐(0)
摘要:#import @interface UIColor (Hex) + (UIColor *)colorWithHex:(long)hexColor;+ (UIColor *)colorWithHex:(long)hexColor alpha:(float)opacity; @end#import ... 阅读全文
posted @ 2015-09-11 11:41 frounk 阅读(296) 评论(0) 推荐(0)
摘要:控制 UINavigationController 导航条是否挡住下面的内容 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { self.edgesForExtendedLayout = UIRectEdgeNon... 阅读全文
posted @ 2015-09-07 14:39 frounk 阅读(289) 评论(0) 推荐(0)
摘要:首先说明两种可以让键盘隐藏的Method:1、[viewendEditing:YES] 这个方法可以让整个view取消第一响应者,从而让所有控件的键盘隐藏。2、[textFiled resignFirstResponder] 这个则是比较常用的让某个textFiled的键盘隐藏。接下来就是几种实现方... 阅读全文
posted @ 2015-09-07 13:08 frounk 阅读(962) 评论(0) 推荐(0)
摘要:NSString *className = self.classNames[indexPath.section][indexPath.row]; BaseMapViewController *subViewController = [[NSClassFromString(className) a... 阅读全文
posted @ 2015-09-06 14:19 frounk 阅读(247) 评论(0) 推荐(0)