- (instancetype)initContentView {
self = [super init];
if (self) {
[self setModalPresentationStyle:UIModalPresentationCustom];
self.view.backgroundColor = [UIColor clearColor];
self.contentContainerView = [[UIView alloc] ini...
分类:
其他好文 时间:
2014-12-12 10:11:51
阅读次数:
231
OSI七层模型TCP/IP四层模型对应网络协议应用层 (application)应用层FTP NFS WAIS表示层 (presentation)应用层Telnet Rlogin SNMP Gopher会话层 (session)应用层SMTP DNS传输层 (transport)传输层TCP UDP...
分类:
其他好文 时间:
2014-12-12 01:16:05
阅读次数:
331
在Invoke或者BeginInvoke的使用中无一例外地使用了委托Delegate,至于委托的本质请参考我的另一随笔:对.net事件的看法。一、为什么Control类提供了Invoke和BeginInvoke机制?关于这个问题的最主要的原因已经是dotnet程序员众所周知的,我在此费点笔墨再次记录...
分类:
其他好文 时间:
2014-12-11 22:18:33
阅读次数:
270
缓冲区溢出: 1 Example1.1: 2 ... 3 char buf[BUFSIZE]; 4 gets(buf);//user control 5 ... 6 7 Example1.2(c++): 8 ... 9 char buf[B...
分类:
其他好文 时间:
2014-12-11 22:15:58
阅读次数:
260
Spring 框架最重要的是Ioc(Inversion of Control)容器,在这个基础之上衍生出了AOP(Aspect-Oriented Programming)技术,80/20法则,这货可以解决大部分的编程问题?!最后呢,这基础之上测试驱动开发TDD(test-driven-develop...
分类:
编程语言 时间:
2014-12-11 22:12:21
阅读次数:
164
安装 package-ctrl 在 view->show console下 输入import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); url...
分类:
其他好文 时间:
2014-12-11 15:36:21
阅读次数:
158
(一)什么时路由事件功能定义:路由事件是一种可以针对元素树中的多个侦听器(而不是仅针对引发该事件的对象)调用处理程序的事件。实现定义:路由事件是一个 CLR 事件,可以由 RoutedEvent 类的实例提供支持并由 Windows Presentation Foundation (WPF) 事件系...
1.control+shift+最右上角那个键。电脑进入睡眠,随意键唤醒后,输入密码
2.假如没有密码,就在 偏好设置-安全与隐私-...
分类:
系统相关 时间:
2014-12-11 14:06:07
阅读次数:
212
使用预处理方式: $dbh?=?new?PDO(‘mysql:host=localhost;dbname=access_control‘,?‘root‘,?‘‘);
$dbh->setAttribute(PDO::ATTR_ERRMODE,?PDO::ERRMODE_EXCEPTION);
$dbh->exec(‘set?names?utf8‘);
/*添加...
分类:
数据库 时间:
2014-12-11 12:34:24
阅读次数:
222
Set Grid Color :to change the background color of a cell, row, column, or the entire control.Set Grid Font :to change the type, style, size, effects, ...
分类:
其他好文 时间:
2014-12-11 11:47:48
阅读次数:
154