摘要: 文章来自http://www.cnblogs.com/meteoric_cry/p/3720831.html 一、file was built for archive which is not the architecture being linked (armv7s) 项目是基于cocos2d-x 阅读全文
posted @ 2016-02-18 11:19 lihuang 阅读(696) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/mjios/p/3226954.html#label4 阅读全文
posted @ 2015-02-28 17:30 lihuang 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 原文出自:http://www.joyios.com/?p=47引言使用HTTP(超文本传输)协议访问互联网上的数据是没有经过加密的。也就是说,任何人都可以通过适当的工具拦截或者监听到在网络上传输的数据流。但是有时候,我们需要在网络上传输一些安全性或者私秘性的数据,譬如:包含信用卡及商品信息的电子订... 阅读全文
posted @ 2015-01-06 10:57 lihuang 阅读(41682) 评论(3) 推荐(4) 编辑
摘要: 阅读本文之前首先了解copy与retain的区别,如果有不正确的地方望大家多多指教:copy与retain的区别:copy是创建一个新对象,retain是创建一个指针,引用对象计数加1。Copy属性表示两个对象内容相同,新的对象retain为1,与旧有对象的引用计数无关,旧有对象没有变化。copy减... 阅读全文
posted @ 2014-05-06 17:18 lihuang 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://tanqisen.github.io/blog/2013/04/19/gcd-block-cycle-retain/使用指南:http://blog.csdn.net/nicktang/article/details/6906352Block简介Block作为C语言的扩展,并... 阅读全文
posted @ 2014-05-06 17:04 lihuang 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 一、问题起源一切起源于Apple官方文档里面关于单例(Singleton)的示范代码:Creating a Singleton Instance.主要的争议集中在下面这一段:?1234567891011121314staticMyGizmoClass *sharedGizmoManager =nil... 阅读全文
posted @ 2014-05-06 15:52 lihuang 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 本文转自http://blog.devtang.com/blog/2013/07/28/a-look-inside-blocks/,如有侵权,请联系我删除前言这里有关于block的5道测试题,建议你阅读本文之前先做一下测试。先介绍一下什么是闭包。在wikipedia上,闭包的定义)是:In programming languages, a closure is a function or reference to a function together with a referencing environment—a table storing a reference to each of t 阅读全文
posted @ 2014-03-18 17:49 lihuang 阅读(300) 评论(0) 推荐(0) 编辑
摘要: -(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ if([[textView text] length]>MaxNumberOfDescriptionChars){ return NO; } //判断是否为删除字符,如果为删除则让执行 char c=[text UTF8String][0]; if (c=='\000') { numberOfCharsLabel.text=[NSString stri 阅读全文
posted @ 2014-01-05 21:27 lihuang 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 原文转自:http://blog.csdn.net/chengyingzhilian/article/details/7974897KissXml——xml解析库相关教程:http://www.iteye.com/topic/625849http://sencho.blog.163.com/blog/static/83056228201151743110540/很方便的一个xml解析器,支持Xpath查询。skpsmtpmessage——Quick SMTP邮件发送svn checkout http://skpsmtpmessage.googlecode.com/svn/trunk/ skps 阅读全文
posted @ 2013-12-05 16:26 lihuang 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 来源:http://webfrogs.me/2013/04/01/ios-singleton/单例模式算是开发中比较常见的一种模式了。在iOS中,单例有两种实现方式(至少我目前只发现两种)。根据线程安全的实现来区分,一种是使用@synchronized,另一种是使用GCD的dispatch_once函数。要实现单例,首先需要一个static的指向类本身的对象,其次需要一个初始化类函数。下面是两种实现的代码。1、@synchronizedstatic InstanceClass *instance;+ (InstanceClass *)defaultInstance{ @synchroni... 阅读全文
posted @ 2013-09-16 14:27 lihuang 阅读(127) 评论(0) 推荐(0) 编辑