@property 参数copy:NSString;strong:一般对象weak:UI控件assign:基本数据类型instancetypeinstancetype在类型表示上,跟id一样,可以表示任何对象类型instancetype只能用在返回值类型上,不能像id一样用在参数类型上instanc...
分类:
其他好文 时间:
2015-04-03 00:05:40
阅读次数:
161
测试keepalived主备模式目的:观察VIP在主备服务器上的切换过程
一、安装
yum-yinstallipvsadmkeepalived
二、服务配置
【keepalived主】
[root@R201-1~]#cat/etc/keepalived/keepalived.conf
!ConfigurationFileforkeepalived
global_defs{
router_idR201-1
}
vrrp_instanc..
分类:
其他好文 时间:
2015-04-01 07:15:51
阅读次数:
429
最近在看Java,在编译写书上一个例子时,由于书上的代码只有一部分,于是就自己补了一个内部类。结果编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing in...
分类:
数据库 时间:
2015-03-31 12:21:39
阅读次数:
166
@property 参数copy:NSString;strong:一般对象weak:UI控件assign:基本数据类型instancetypeinstancetype在类型表示上,跟id一样,可以表示任何对象类型instancetype只能用在返回值类型上,不能像id一样用在参数类型上instanc...
分类:
移动开发 时间:
2015-03-28 18:31:09
阅读次数:
137
今天在写一个小的程序时出现No enclosing instance of type Hidden is accessible. Must qualify the allocation with an enclosing instance of type Hidden (e.g. x.new A()...
分类:
数据库 时间:
2015-03-16 12:36:33
阅读次数:
218
最近在看Java,在编译写书上一个例子时,由于书上的代码只有一部分,于是就自己补了一个内部类。结果编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing in...
分类:
数据库 时间:
2015-02-27 13:23:04
阅读次数:
213
使用Eclipse可以方便的统计工程或文件的代码行数,方法如下:1.点击要统计的项目或许文件夹,在菜单栏点击Search,然后点击File...2.选中正则表达式(Regular expression),并在搜索文本框输入\n3.在文件名中输入*或*.java4.在范围里选中Enclosing pr...
分类:
系统相关 时间:
2015-02-09 23:04:17
阅读次数:
183
成员对象:一个类的成员变量是另一个类的对象包含成员对象的类叫封闭类 (Enclosing)如下代码:class CTyre {private: int radius; int width;public: CTyre(int r, int w):radius(r), width(w)...
分类:
编程语言 时间:
2015-02-04 14:13:33
阅读次数:
203
1. 概述扩展用于给已经存在的类、枚举、结构体添加新的功能。Swift中的扩展(extensions)与Objective-C中的分类(categories)的类似,但不同点在于,扩展没有名字。扩展有如下功能:1)增加 computed属性和静态的computed属性2)定义实例方法 instanc...
分类:
其他好文 时间:
2015-02-03 19:15:47
阅读次数:
164
http://stackoverflow.com/questions/19241208/duplicate-the-uibutton-and-move-it/26438692#264386921down votefavoriteI have one UIButton(lets say instanc...
分类:
其他好文 时间:
2015-01-30 15:42:42
阅读次数:
198