- 博客(6)
- 收藏
- 关注
原创 iOS 从某一界面pop回指定界面
1,如果是tabbar的不通controller self.tabBarController.selectedIndex = 0;//选择所在的tabbar [self.navigationController popToViewController:self.navigationController.viewControllers[0] animated:YES];//pop回某一指定界
2017-04-24 16:13:34 994
转载 怎么让self.view的Y从navigationBar下面开始计算
在iOS 7中,苹果引入了一个新的属性,叫做[UIViewController setEdgesForExtendedLayout:],它的默认值为UIRectEdgeAll。当你的容器是navigation controller时,默认的布局将从navigation bar的顶部开始。这就是为什么所有的UI元素都往上漂移了44pt。有时会加上顶部tool bar的高度 20, 20+44 = 64
2017-04-24 16:08:38 609
原创 iOS超出屏幕的尺寸的图片按比例缩放显示
imageView.contentMode = UIViewContentModeScaleAspectFit; imageView.autoresizesSubviews = YES; imageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | U
2017-04-20 17:52:01 2189
转载 Cocoapods降低版本及卸载步骤
有的时候我们需要降低Cocoapods的版本来解决第三方库的兼容问题.一. 移除pod组件 这条指令会告诉你Cocoapods组件装在哪里 :$ which pod你可以手动移除这个组件 :$ sudo rm -rf <path>二. 移除 RubyGems 中的 Cocoapods程序包 Q: RubyGems是什么? A: RubyGems(简称 gems)是一个用于对 Ruby组件进行打
2017-04-14 20:36:22 1410
原创 The 'Pods-CommonPods-ProjectName' target has libraries with conflicting names: libcrypto.a and libss
合并代码之后 发现cocoapods报错如下:The 'Pods-CommonPods-ProjectName' target has libraries with conflicting names: libcrypto.a and libss意思是当前pods版本过高,解决办法是 回退cocoapod的版本
2017-04-14 20:29:20 3205
原创 Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE
使用Cocoapods 导入第三方的资源时,出现如下警告:!Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE解决此警告的办法:我这里改用xcode编译podfile$ show podfile $ touch Podfile $ open -a
2017-04-14 20:26:03 2770
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人