码迷,mamicode.com
首页 >  
搜索关键字:weak reference    ( 6649个结果)
JAAS - Document
JAAS 参考文档:JAAS Reference GuideJAAS Authentication TutorialJAAS Authorization TutorialLoginModule Developer's GuideJAAS Login Configuration File
分类:其他好文   时间:2016-01-12 21:29:59    阅读次数:154
Cannot make a static reference to the non-static method的解决方法
报错原因:在一个类中写了一个public String getContent()方法和一个main()方法,getContent()方法中包含了getClass()方法,在main()方法中直接调用了getContent()就出现如题的错误。这样一样解决方法:先实例化类,然后再调用getConten...
分类:其他好文   时间:2016-01-12 11:24:25    阅读次数:102
2016-1-10 组动画学习 底部旋转菜单的实现
#define detal 80;// 按钮间距#import "ZZMenuView.h"@interface ZZMenuView()@property (nonatomic, strong) NSMutableArray *items;@property (weak, nonatomic) I...
分类:其他好文   时间:2016-01-11 23:35:40    阅读次数:230
swift 之SnapKit 动画
这个问题纠结了我挺长时间的。一直以为把约束直接添加到动画里面就可以了。但是并没那么简单。-.-其实还是挺简class ViewController: UIViewController { @IBOutlet weak var usernameOutlet: UITextField! @I...
分类:编程语言   时间:2016-01-11 14:00:29    阅读次数:170
10.OC中retainCount返回值不准的原因
翻看该方法的参考文档,苹果对retainCount方法的描述如下:retainCountDo not use this method. (required)- (NSUInteger)retainCountReturn ValueThe receiver’s reference count.Spec...
分类:其他好文   时间:2016-01-10 21:09:30    阅读次数:289
php Only variables can be passed by reference
最近做项目,发现了一个报错 Only variables can be passed by reference, 意思是“只有变量能通过‘引用’”就是在代码中 使用了一个方法,这个方法的参数值传址引用的例如php的 end方法php官网的说法(PHP 4, PHP 5)end — 将数组的内部指针指...
分类:Web程序   时间:2016-01-09 18:15:32    阅读次数:147
0108 --block -__weak self
//图片被点击事件,当前第几张图片被点击了,和数组顺序一致 __weak NewsgzzViewController *wself = self;[TopScro setImageViewDidTapAtIndex:^(NSInteger index) { printf("第%zd张图片\...
分类:其他好文   时间:2016-01-08 18:49:33    阅读次数:121
Objective C类方法load和initialize的区别
它们的特别之处,在于iOS会在运行期提前并且自动调用这两个方法,而且很多对于类方法的规则(比如继承,类别(Category))都有不同的处理。先来看看NSObject Class Reference里对这两个方法说明:+(void)initializeThe runtime sends initia...
分类:其他好文   时间:2016-01-08 07:00:44    阅读次数:193
std::sort要求strict weak ordering
strict weak ordering简单地说就是小于语义,非小于等于语义,也就是说对于相等的或者异常的元素比较应当返回false后果很严重,在google搜一下violating strict weak ordering make std::sort crash能看到很多种后果,经测试,当待排序...
分类:其他好文   时间:2016-01-08 00:11:58    阅读次数:309
解决Block弱引用可能造成的循环引用
1.__weak typeof(self) myself = self;2.__weak RecommendViewController *recommendVC = self;以上两种写法是一种效果typeof(self) 是获取到self的类型,这样定义出的weakSelf就是和self一个类型...
分类:其他好文   时间:2016-01-06 23:50:20    阅读次数:481
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!