码迷,mamicode.com
首页 >  
搜索关键字:weak reference    ( 6649个结果)
Android开发之Toast的使用
Toast,A toast provides simple feedback about an operation in a small popup.对于操作提供一个简单反馈信息。官网链接:http://developer.android.com/reference/android/widget/T...
分类:移动开发   时间:2015-07-17 20:26:56    阅读次数:188
《Effective C++》——条款20:宁以pass-by-reference-to-const替换pass-by-value
切割(slicing)问题请看下面代码:class Window{public: ... std::string name()const; //返回窗口名称 virtual void display()const; //显示窗口和其内容};class WindowWithS...
分类:编程语言   时间:2015-07-17 18:16:06    阅读次数:147
strong、weak、copy、assign 在命名属性时候怎么用
一直都在疑惑属性定义中在什么情况下用strong、在什么情况下用weak?总结大致如下: 1.weak 是用来修饰代理(delegate)和UI控件。 2.strong 是用来修饰除了代理(delegate)、UI控件、字符串(NSString)以外的对象类型。 3.copy 是用来修饰字符串...
分类:其他好文   时间:2015-07-17 17:54:55    阅读次数:86
Android开发之ViewPager及PagerAdapter
ViewPager,官网链接--http://developer.android.com/reference/android/support/v4/view/ViewPager.htmlViewPager,位于android.support.v4.view.ViewPager。1.继承自ViewGr...
分类:移动开发   时间:2015-07-17 13:59:57    阅读次数:123
Exception Handling Statements (C# Reference)
Exception Handling Statements (C# Reference)C# provides built-in support for handling anomalous situations, known as exceptions, which may occur durin...
分类:Windows程序   时间:2015-07-17 11:55:05    阅读次数:185
objc_setAssociatedObject获取cell上button对应所在的行
#import @interface TestCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIButton *btnTest;@end#import "ViewController.h"#import "TestCell.h"...
分类:其他好文   时间:2015-07-17 11:20:48    阅读次数:135
[转载] linux 速查表
原文:http://www.nixtutor.com/linux/all-the-best-linux-cheat-sheets/1. Linux Command LineLinux Reference Card- Great reference published on FOSSwire webs...
分类:系统相关   时间:2015-07-17 09:32:19    阅读次数:146
CoreLocation框架的使用
//地理编码类 //1、用来根据地名来解析当前的经纬度和其他一些附属消息 //2、根据经纬度来解析地名和其他消息 @interface ViewController () @property (weak, nonatomic) IBOutlet MKMapView *mapView; /*  地理编码**/ @property(nonatomic,strong)CLGeocod...
分类:其他好文   时间:2015-07-16 22:27:32    阅读次数:141
02-Reference & GC
一、引用     Java中引用的定义很传统:如果reference类型的数据中存储的数值代表的是另外一块内存的起始地址,就称这块内存代表着一个引用。这个定义很纯粹,但是太过狭隘,一个对象在这种定义下只有被引用或者没有被引用两种状态,对于如何描述一些“食之无味弃之可惜”的对象就显得无能为力。我们希望能描述这样一类对象:当内存空间还足够时,则能保存在内存中;如果内存在进行垃圾收集后还是非常紧张...
分类:其他好文   时间:2015-07-16 22:25:21    阅读次数:106
利用MapKit实现导航
#import "ViewController.h" #import #import #import "JRAnnotation.h" @interface ViewController () @property(nonatomic,strong) CLGeocoder * coder; @property (weak, nonatomic) IBOutlet MKMapV...
分类:其他好文   时间:2015-07-16 22:25:17    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!