本章主要讲解OC语言特性类目(Category)延展(Extension)协议(Protocol)1.类目OC语言中的类目机制只有一个作用:为任何一个类添加方法现在我们创建一个Student类@interface Student : NSObject@property(nonatomic,stron...
分类:
其他好文 时间:
2015-02-04 12:31:07
阅读次数:
169
//委托的协议定义@protocol UpdateDelegate - (void)update;@end@interface Test : NSObject//委托变量定义@property (nonatomic, weak) id delegate;//blocktypedef void (^U...
分类:
移动开发 时间:
2015-02-04 10:37:53
阅读次数:
186
/* Connection tracking via netlink socket. Allows for user space * protocol helpers and general trouble making from userspace. * * (C) 2001 by Jay Sch...
分类:
Web程序 时间:
2015-02-04 07:05:23
阅读次数:
382
委托其实并不是OC中才有,C#中也有,不过彼此的理解方式是不一样的,OC中委托是协议的一种,需要使用@protocol声明,委托一般在iOS开发中页面中传值用的比较多。委托是Cocoa中最简单、最灵活的模式之一,委托其实字面上的意思就是将需要的事情委托给别人做,业务场景可以参考主视图和子视图之间的页...
分类:
移动开发 时间:
2015-02-04 00:28:01
阅读次数:
235
public class MainActivity extends Activity {
private EditText inputEditText;
private Button btn;
private TextView showView;
@Override
protected void onCreate(Bundle savedInstanceState) {
s...
分类:
移动开发 时间:
2015-02-03 15:02:42
阅读次数:
131
C语言 可变参数堆栈一般是怎么压栈处理的/**stackspace:**参数3|up*参数2|*参数1vdown*/ 因为参数是按照从右向左依次压入的,所以后面参数的地址依次根据“%”处理即可。文章中start=(int*)&buffer即获取了最后入栈的参数地址(如果最后一个入栈参数为int类型,...
分类:
编程语言 时间:
2015-02-03 12:38:31
阅读次数:
168
buffer相关参数:
innodb_buffer_pool_size
innodb_buffer 大小
innodb_buffer_pool_instances
innodb_buffer instance 个数
innodb_old_blocks_pct
LRU端mid点位置
innodb_old_blocks_time
LRU在Old端保留的时间
innodb_io_c...
分类:
数据库 时间:
2015-02-03 09:31:01
阅读次数:
209