随笔分类 -  IOS

上一页 1 2 3 4 5 6 ··· 8 下一页

Push UIViewController with different orientation to previous
摘要:转自:http://stackoverflow.com/questions/6695837/push-uiviewcontroller-with-different-orientation-to-previous参考:http://stackoverflow.com/questions/159473... 阅读全文

posted @ 2014-10-31 21:57 王培 阅读(543) 评论(0) 推荐(0)

shouldAutoRotate Method Not Called in iOS6
摘要:转自:http://stackoverflow.com/questions/13588325/shouldautorotate-method-not-called-in-ios6参考1:http://stackoverflow.com/questions/21088956/supportedinte... 阅读全文

posted @ 2014-10-30 21:33 王培 阅读(572) 评论(0) 推荐(0)

UIScrollView中图片放大后不居中,或居中后移动有偏差解决办法
摘要:转自:http://blog.sina.com.cn/s/blog_6ae8b50d0100yret.html问题的描述如下:要显示一张图片,也只需要显示一张图片,该图片可能很大,也可能很小,但是要允许手势放大缩小和移动,所以就把它放在UIScrollView里。一开始显示时,如果是大图片就要把它缩... 阅读全文

posted @ 2014-10-30 15:08 王培 阅读(1183) 评论(0) 推荐(0)

iOS7隐藏状态栏 status Bar
摘要:转自:http://blog.csdn.net/dqjyong/article/details/17896145IOS7中,不仅应用的风格有一定的变化,状态栏变化比较大,我们可以看到UIVIEWCONTROLLER的状态栏与导航栏基本是一体的。因此UIVIEWCONTROLLER的HIDE/SHOW... 阅读全文

posted @ 2014-10-26 21:14 王培 阅读(272) 评论(0) 推荐(0)

UIView的alpha、hidden和opaque属性之间的关系和区别
摘要:转自:http://blog.csdn.net/wzzvictory/article/details/10076323作者:wangzz原文地址:http://blog.csdn.net/wzzvictory/article/details/10076323转载请注明出处如果觉得文章对你有所帮助,请... 阅读全文

posted @ 2014-10-26 20:02 王培 阅读(553) 评论(0) 推荐(0)

IOS 入门开发之创建标题栏UINavigationBar的使用
摘要:转自:http://xys289187120.blog.51cto.com/3361352/685746IOS 入门开发之创建标题栏UINavigationBar的使用 IOS 开发有关界面的东西不仅可以使用代码来编写,也可以使用Interface Builder可视化工具来编写。今天有个朋友问我这... 阅读全文

posted @ 2014-10-24 15:16 王培 阅读(812) 评论(0) 推荐(0)

iOS7相机隐私判断
摘要:转自:http://borissun.iteye.com/blog/1992303装了iOS7的ip5的隐私设置里多了相机这一项(ip4装iOS7就没有)。如果隐私里把你的app对应的相机给关了,那打开就会是个黑屏。因此要判断是不是出现了这样的情况。 第一反应肯定是去UIImagePickerCon... 阅读全文

posted @ 2014-10-23 21:11 王培 阅读(242) 评论(0) 推荐(0)

CodeSign error: code signing is required for product type Application in SDK iOS XXX的解决办法
摘要:转自:http://www.tuicool.com/articles/jYRNbm在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0' ,就是说代码签名证书不对劲。... 阅读全文

posted @ 2014-10-20 11:21 王培 阅读(211) 评论(0) 推荐(0)

含有按钮的ScrollView在iOS8中无法滚动的解决办法 | ScrollView with UIControl/UIButton subviews not scrollable under iOS 8
摘要:转自:http://zcw.me/blogwp/%E5%90%AB%E6%9C%89%E6%8C%89%E9%92%AE%E7%9A%84scrollview%E5%9C%A8ios8%E4%B8%AD%E6%97%A0%E6%B3%95%E6%BB%9A%E5%8A%A8%E7%9A%84%E8%... 阅读全文

posted @ 2014-10-19 12:11 王培 阅读(653) 评论(0) 推荐(0)

iphone开发之解决viewWillAppear失效
摘要:转自:http://linuxstuding.iteye.com/blog/1224399你可曾遇到过viewWillAppear没有被调用到的情况产生原因是用了UINavigationController.将UINavigationController的view作为subview添加到了其他vie... 阅读全文

posted @ 2014-10-14 15:42 王培 阅读(1460) 评论(0) 推荐(0)

获取IOS屏幕尺寸大小
摘要:转自:http://www.open-open.com/lib/view/open1395752090322.html1.app尺寸,去掉状态栏CGRectr = [UIScreenmainScreen ].applicationFrame;r=0,20,320,4602.屏幕尺寸CGRectrx ... 阅读全文

posted @ 2014-10-13 13:34 王培 阅读(372) 评论(0) 推荐(0)

ios页面间跳转方式总结
摘要:转自:http://www.cnblogs.com/anywherego/p/3542202.html下面以OldViewController(oldC)的按钮btn点击后跳转到NewViewController(newC)为例说明:1.Storyboard的segues方式鼠标点击按钮btn然后按... 阅读全文

posted @ 2014-09-16 21:05 王培 阅读(5144) 评论(0) 推荐(0)

iOS 7 教程:定制iOS 7中的导航栏和状态栏
摘要:转自:http://beyondvincent.com/blog/2013/11/03/120-customize-navigation-status-bar-ios-7/注:本文译自Customizing Navigation Bar and Status Bar in iOS 7近期,跟大多数开... 阅读全文

posted @ 2014-09-14 10:38 王培 阅读(333) 评论(0) 推荐(0)

使用UINavigationController后导致UIScollView尺寸变化
摘要:转自:http://www.w3c.com.cn/%E4%BD%BF%E7%94%A8uinavigationcontroller%E5%90%8E%E5%AF%BC%E8%87%B4uiscollview%E5%B0%BA%E5%AF%B8%E5%8F%98%E5%8C%96http://blog... 阅读全文

posted @ 2014-07-09 11:22 王培 阅读(260) 评论(0) 推荐(0)

iOS改变UINavigationBar导航条标题颜色和字体
摘要:转自:http://www.2cto.com/kf/201311/260409.htmliOS 5 以后 UINavigationController 可以 改变UINavigationBar导航条标题颜色和字体。[self.navigationController.navigationBar se... 阅读全文

posted @ 2014-06-18 10:22 王培 阅读(342) 评论(0) 推荐(0)

关于navigationBar的颜色计算与默认透明度
摘要:NavigationBar的默认透明度为85%颜色叠加计算公式:RGB需要分开计算,以叠加白色背景为例:原始颜色(217,10,20)设置透明度85%计算过程:R=217 + (255-217)*(1-0.85)G=10 + (255-10)*(1-0.85)B=20 + (255-20)*(1-0... 阅读全文

posted @ 2014-06-11 17:31 王培 阅读(306) 评论(0) 推荐(0)

iphone CGContextSetLineWidth 画线的问题
摘要:转自:http://blog.csdn.net/jxncwzb/article/details/6267154CGContextRef context = UIGraphicsGetCurrentContext();CGContextSetRGBStrokeColor (context, 142.0... 阅读全文

posted @ 2014-06-08 20:56 王培 阅读(483) 评论(0) 推荐(0)

NSDateFormatter相关整理
摘要:转自:http://www.cnblogs.com/ios-wmm/archive/2012/12/12/2815309.html输出格式通setDateStyle和setTimeStyle设置,分别定义的日期和时间的格式可选一下的系统给出的方法。typedef enum { NSDateFo... 阅读全文

posted @ 2014-06-07 12:08 王培 阅读(314) 评论(0) 推荐(0)

用TTTAttributedLabel创建变化丰富的UILabel
摘要:转自:http://blog.csdn.net/prevention/article/details/99985751. 不同颜色的字段混合在一个Label里怎么实现?看TTTAttributedLabel是怎么做的:TTTAttributedLabel *hintLabel1 = [[TTTAtt... 阅读全文

posted @ 2014-06-05 16:07 王培 阅读(1168) 评论(0) 推荐(0)

CocoaPods安装和使用教程
摘要:Code4App 原创文章。转载请注明出处:http://code4app.com/article/cocoapods-install-usage目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods,在项目中导入AFNetwork... 阅读全文

posted @ 2014-06-05 13:44 王培 阅读(184) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 8 下一页

导航