ARC forbids explicit message send of'release'
很显然,是ARC的问题。
错误原因:在创建工程的时候点选了“Use Automatic Reference Counting”选项
ARC是什么?
ARC是iOS 5推出的新功能,全称叫 ARC(Automatic ReferenceCounting)。简单地说,...
分类:
其他好文 时间:
2014-10-08 00:00:34
阅读次数:
277
在《C++ Annotated Reference Manual(ARM)[ELLIS90]》中的Section 12.1告诉我们:"Default constructors...在需要的时候被编译器产生出来"。其实默认构造函数也是分为两类的:有用的(nontrivial)、无用的(trivial)...
分类:
其他好文 时间:
2014-10-07 15:57:13
阅读次数:
274
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。依据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:
移动开发 时间:
2014-10-07 13:13:23
阅读次数:
194
转自:http://blog.csdn.net/u011589606/article/details/23474241in the cpp file, please include#include in Android.mk, please addLOCAL_STATIC_LIBRARIES ...
分类:
其他好文 时间:
2014-10-07 13:10:03
阅读次数:
712
昨天基本弄清config的使用之后,再看WP的API,晕了。结果WP不支持system.configuration命名空间,这意味着想在WP上用App.config不大可能了。WP具体支持API请查看.net WP APIAPI reference不过还是记录下App.config的使用。有很大部分...
分类:
移动开发 时间:
2014-10-07 00:01:01
阅读次数:
371
仅仅是配置文件,粘贴如下,不做解释!去掉了很多功能!仅保留sip电话!
[general]
; General settings for the operation of Yate
; modload: boolean: Should a module be loaded by default if there is no
; reference to it in the [modules]...
分类:
其他好文 时间:
2014-10-06 16:09:00
阅读次数:
167
XmlPullParser解析xml的android文档docs/reference/org/xmlpull/v1/XmlPullParser.html xmlPullParer官网:http://www.xmlpull.org/ 例子:要解析的文件:pull.xml??? ? ? ? ? <?xml?version="1.0"?encodin...
分类:
其他好文 时间:
2014-10-05 19:43:59
阅读次数:
219
自定义迭代器必须提供iterator_traits的五种特性,分别是迭代器类型、元素类型、距离类型、指针类型与reference类型。这里我们继承标准库提供的iterator即可。代码如下: 1 #ifndef ITERATOR_H 2 #define ITERATOR_H 3 #include ....
分类:
其他好文 时间:
2014-10-05 19:36:08
阅读次数:
224
/usr/bin/ld: ext/curl/.libs/interface.o: undefined reference to symbol 'CRYPTO_set_id_callback@@OPENSSL_1.0.0'//lib/i386-linux-gnu/libcrypto.so.1.0.0:...
分类:
Web程序 时间:
2014-10-05 19:15:48
阅读次数:
333
假设你不小心git reset --hard HEAD^然后这个commit又没有在别的git仓库中,怎么办?是不是这次改动就丢了呢?当然不是,git为我们每次都历史都保留了reference log例如以下:$ git commit -A -m "hongchangfirst commit"你如今...
分类:
其他好文 时间:
2014-10-05 11:34:18
阅读次数:
188