2017年3月16日

iOS 关于横竖屏幕的问题

摘要: 在 info.plist文件中添加 Supported interface orientations数组元素如下 1.Portrait (bottom home button) 2.Portrait (top home button) 3.Landscape (left home button) 4 阅读全文

posted @ 2017-03-16 14:10 开花结果乐园 阅读(158) 评论(0) 推荐(0) 编辑

2017年3月15日

iOS TabBar 隐藏的问题

摘要: 在ios 8 中 self.tabBarController.tabBar.hidden = YES; self.view 的frame也会变小,缺少 self.tabBarController.tabBard的高度,这样加在self.view上面的self.tabBarController.tab 阅读全文

posted @ 2017-03-15 16:59 开花结果乐园 阅读(163) 评论(0) 推荐(0) 编辑

iOS @protocol UIContentContainer <NSObject>

摘要: @protocol UIContentContainer <NSObject> @property (nonatomic, readonly) CGSize preferredContentSize ;//iOS8之后,加入了新的一组协议,UIViewController对这组协议提供了默认的实现, 阅读全文

posted @ 2017-03-15 11:50 开花结果乐园 阅读(420) 评论(0) 推荐(0) 编辑

2017年3月13日

iOS button 事件不响应

摘要: 第一种情况: button是不是在self.tabBarController.tabBar的位置上面,如果是则改成 [self.tabBarController.view addSubview:button]; 第二种情况: ..... 阅读全文

posted @ 2017-03-13 13:42 开花结果乐园 阅读(140) 评论(0) 推荐(0) 编辑

2017年3月11日

oc 生成并持有对象的强引用

摘要: id __strong obj0 = [[NSObject alloc]init];/*对象A*/ //obj0 持有对象A的强引用 id __strong obj1 = [[NSObject alloc]init];/*对象B*/ //obj1 持有对象B的强引用 id __strong obj2 阅读全文

posted @ 2017-03-11 16:39 开花结果乐园 阅读(162) 评论(0) 推荐(0) 编辑

HTML之标签类型

摘要: 一.标签类型 1.块级标签(独占一行) 例如: div p h1 h2 ul li 2.行内标签(高和宽根据内容) 例如: span a label 3.行内块级标签(高和宽可以自定义) 例如: input button 二.修改标签的类型 display: 1)none 不显示 2)block 行 阅读全文

posted @ 2017-03-11 13:53 开花结果乐园 阅读(115) 评论(0) 推荐(0) 编辑

HTML之选择器

摘要: 1.并列选择器(相当于"或") 例如:div,.height{color:red} 2复合选择器(相当于"&") 例如: #sss.height{color:red} 3.后代选择器(父子,爷孙关系) 例如: div p{color:red} 4.直接后代选择器(父子关系) 例如: div p{co 阅读全文

posted @ 2017-03-11 13:45 开花结果乐园 阅读(174) 评论(0) 推荐(0) 编辑

ios 加载.bundle文件里的图片

摘要: 这个是加载bundle里面的的图片 + (UIImage *)imageNamed:(NSString *)name ofBundle:(NSString *)bundleName { UIImage *image = nil; NSString *image_name = [NSString st 阅读全文

posted @ 2017-03-11 11:27 开花结果乐园 阅读(7083) 评论(0) 推荐(0) 编辑

2017年3月5日

ios 多继承的两种方法

摘要: http://www.cocoachina.com/ios/20161026/17857.html 阅读全文

posted @ 2017-03-05 11:01 开花结果乐园 阅读(146) 评论(0) 推荐(0) 编辑

2017年3月2日

如果编译时存在Duplicated的问题,可以尝试删掉-ObjC和-all_load单独设置-force_load只加载使 到的类别的静态库。

摘要: 如果编译时存在Duplicated的问题,可以尝试删掉-ObjC和-all_load单独设置-force_load只加载使 到的类别的静态库。 由于目前静态库不支持BITCODE ,需要在工程设置中关闭BITCODE的开关以通过编译。在 TARGETS->Build Settings->Enable 阅读全文

posted @ 2017-03-02 10:49 开花结果乐园 阅读(198) 评论(0) 推荐(0) 编辑

导航