https://github.com/YouXianMing
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 85 下一页
摘要: 网络通信有时候需要传递参数userAgent,iOS中获取userAgent很简单. UIWebView* webView = [[UIWebView alloc] initWithFrame:CGRectZero]; NSString *userAgentString = [webVi... 阅读全文
posted @ 2014-04-16 12:18 YouXianMing 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: OpenUDIDOpen source initiative for a universal and persistent UDID solution for iOS.首创的给iOS提供设备唯一标示符的一个开源代码.https://github.com/ylechelle/OpenUDID使用很简单... 阅读全文
posted @ 2014-04-16 11:15 YouXianMing 阅读(1206) 评论(0) 推荐(0) 编辑
摘要: addChildViewControllerIf the new child view controller is already the child of a container view controller, it is removed from that container before b... 阅读全文
posted @ 2014-04-15 17:08 YouXianMing 阅读(5916) 评论(2) 推荐(1) 编辑
摘要: 适配屏幕其实很简单,但为了保持兼容性以及写的代码的通用性,以及最小的改动代码,本人按照如下的一种方式来适配,可以一劳永逸.1. 先定义几个宏,分辨表示应用可以使用区域的高度,屏幕可用区域的高度,屏幕的宽度2. 再看看如下图的一些描述3. 接下来看看适配的代码如何写#import "RootViewC... 阅读全文
posted @ 2014-04-15 13:15 YouXianMing 阅读(730) 评论(3) 推荐(1) 编辑
摘要: FastCodinghttps://github.com/nicklockwood/FastCodingA faster and more flexible binary file format replacement for NSCoding, Property Lists and JSON一个用... 阅读全文
posted @ 2014-04-15 09:47 YouXianMing 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: 其实很简单,直接使用系统工具转换即可,以下是步骤:1. 你之前的项目是MRC的2. 里面有 release, dealloc 等.3. 开始转化4. 点击save转化完后,记得把工程重新设置成arc的. 阅读全文
posted @ 2014-04-15 08:52 YouXianMing 阅读(418) 评论(0) 推荐(0) 编辑
摘要: FreeStreamerhttps://github.com/muhku/FreeStreamerIntroductionFreeStreamer is an audio player engine for iOS and OS X, designed for playing audio strea... 阅读全文
posted @ 2014-04-14 21:20 YouXianMing 阅读(1213) 评论(0) 推荐(1) 编辑
摘要: http://www.cocoachina.com/gamedev/misc/2014/0410/8135.html 好的编程原则跟好的系统设计原则和技术实施原则有着密切的联系。下面的这些编程原则在过去的这些年里让我成为了一名优秀的程序员,我相信,这些原则对任何一个开发人员来说,都能让他的编程能力... 阅读全文
posted @ 2014-04-14 20:11 YouXianMing 阅读(208) 评论(0) 推荐(1) 编辑
摘要: 注意,是iOS7以下的设备,直接上源码,获取mac地址都是为了唯一标识一个设备的,但iOS7设备的mac地址为 020000000000MacAddress.h#include #include #include #include NSString * macaddress();MacAddre... 阅读全文
posted @ 2014-04-14 18:31 YouXianMing 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 面向对象的3大特性,封装继承和多态.我遇到过封装相关的问题,因为初级封装简单,常常暴露出被你封装的接口,进一步进行高级封装隐藏接口的时候才发现,封装是一门学问,而这门学问得从最基础的alloc与init讲起.FatherModel.h#import @interface FatherModel : ... 阅读全文
posted @ 2014-04-14 09:42 YouXianMing 阅读(1433) 评论(2) 推荐(0) 编辑
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 85 下一页