一般是程序中的某一个对象被release 了两次 一般情况下是与你定义的类型有关这里面我的错误是吧 NSString 类型的变量的属性 设置为了 assign 了 目测与这个有关补充object-c 基础property,assign,copy,retain,releaseproperty:属性的定...
分类:
其他好文 时间:
2014-07-23 15:02:36
阅读次数:
163
-webkit-animation:仍旧是一个复合属性,-webkit-animation: name duration timing-function delay iteration_count direction;包括以下几个属性(1) -webkit-animation-name 这个属性的....
分类:
Web程序 时间:
2014-07-23 14:51:26
阅读次数:
276
#include "stm32f10x.h"
#include "led.h"
#include "delay.h"
#include "sys.h"
int main(void)
{
delay_init();
LED_Init();
while(1)
{
LED0=0;
LED1=1;
delay_ms(300);
LED0=1;
LED1=0;
delay_ms...
分类:
其他好文 时间:
2014-07-23 13:34:56
阅读次数:
249
很多小猿遇到这个Exception 的时候,都会有点无厘头。这个时候最好try-- catch下,找到出错的地方。本人习惯在页面上加个lable标签,把exc msg(exception message)输出的到lable,这样可以省的再调试,直接可以看到错误信息。但有时还是需要去打断点调试,这样才...
分类:
其他好文 时间:
2014-07-23 12:46:56
阅读次数:
197
Assigning retained object to unsafe property;object will be released after assignment...
分类:
其他好文 时间:
2014-07-23 00:09:37
阅读次数:
183
Wrote by mutouyun. (http://darkc.at/about-data-structure-alignment/)
1. 内存对齐(Data Structure Alignment)是什么
内存对齐,或者说字节对齐,是一个数据类型所能存放的内存地址的属性(Alignment is a property
of a memory address)。
这个属性...
分类:
其他好文 时间:
2014-07-22 23:52:08
阅读次数:
487
#include#include #include using namespace std;using namespace boost::property_tree;//其实有点像std::list,自己可以构造一个任何类型的节点插进去,特别数组类型,用法太灵活了int main(){ std...
分类:
Web程序 时间:
2014-07-22 23:22:57
阅读次数:
257
python内置的描述符python有些内置的描述符对象,property、staticmethod、classmethod,python实现如下:class Property(object): def __init__(self,getf,setf,delf,doc): sel...
分类:
编程语言 时间:
2014-07-22 23:21:47
阅读次数:
335
#include#include #include #include #include //解析下面的json//pairint main(){ using namespace boost::property_tree; std::string strJson = "{ \"people...
分类:
Web程序 时间:
2014-07-22 22:59:52
阅读次数:
230
第二个view声明一个block属性:
@property (nonatomic, copy) void(^doTransferMsg)(NSString *_msg);
然后传值方法里检查block是不是存在
- (IBAction)transferText:(UIButton *)sender {
if (_doTransferMsg) {
_do...
分类:
其他好文 时间:
2014-07-22 22:34:35
阅读次数:
179