reference to : http://blog.csdn.net/wfung_kwok/article/details/7766427 package com.secufity.aes; import java.util.UUID; import javax.crypto.Cipher; im
分类:
移动开发 时间:
2016-03-08 11:59:40
阅读次数:
190
AC在应用中大量使用了block,由于Objective-C语言的内存管理是基于引用计数的,为了避免循环引用问题,在block中如果要引用self,需要使用@weakify(self)和@strongify(self)来避免强引用。 一、block的循环引用问题 ? [objc] view plai
分类:
其他好文 时间:
2016-03-07 13:28:20
阅读次数:
194
将 C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\zh-Hans 目录替换以下目录 C:\Program Files (x86)\Reference Assemblies\Micr
分类:
其他好文 时间:
2016-03-07 10:16:27
阅读次数:
131
property 中的strong 与weak strong关键字与retain关似,用了它,引用计数自动+1,用实例更能说明一切 @property (nonatomic, strong) NSString *string1; @property (nonatomic, strong) NSStr
分类:
其他好文 时间:
2016-03-06 20:45:43
阅读次数:
138
arc就是自动引用计算。英文名Automatic Reference Counting。在一开始的IOS开发中,内存管理是需要手动的,对某个资源的引用,引用后就对其计算+1,当不再使用就-1,当计算为0,就没有对象引用此资源,就可以释放了。后来呢,大家觉得这样不行,该搞个什么东西自动来做这些事情,当
分类:
其他好文 时间:
2016-03-06 01:10:34
阅读次数:
237
在objective-c中,类中的全局变量经常使用如下的方式申明。 @property(nonatomic(1),strong(2))UIImageView *imageView; 其中的1,2处是对此变量的一些属性申明。有以下几种strong weakassignstrong 和 weak 是在a
分类:
其他好文 时间:
2016-03-06 01:00:29
阅读次数:
198
一般在block中修改变量都需要事先加block进行修饰。在非arc中,block修饰的变量的引用计算是不变的。在arc中,会引用到,并且计算+1;非arc下可使用(arc直接使用__weak即可) //非ARC __block typeof(self) weakSelf = self; self.
分类:
其他好文 时间:
2016-03-06 01:00:22
阅读次数:
126
1、错误描述2016-03-05 11:19:53 WARN [org.springframework.web.context.support.XmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.b...
分类:
其他好文 时间:
2016-03-05 11:50:54
阅读次数:
416
弱表(weak table)是一个很有意思的东西,像C++/Java等语言是没有的。弱表的定义是:A weak table is a table whose elements are weak references,元素为弱引用的表就叫弱表。有弱引用那么也就有强引用,有引用那么也就有非引用。我们先要
分类:
其他好文 时间:
2016-03-04 19:20:21
阅读次数:
228
最近正在开发的一个app需要加入指纹识别的功能,先搜索一下找到官方文档,简单易懂: https://developer.apple.com/library/ios/documentation/LocalAuthentication/Reference/LocalAuthentication_Fram
分类:
移动开发 时间:
2016-03-04 10:25:08
阅读次数:
195