1. 建一个 UIView的子类(MyView.h/MyView.m)2. 建一个 View类型的XIB3. 把xib的file‘s owner设为MyView4. 在.h文件里加上@property (nonatomic, retain) IBOutlet UIView *contentView;...
分类:
其他好文 时间:
2015-04-28 15:59:38
阅读次数:
952
1225. FlagsTime limit: 1.0 secondMemory limit: 64 MBOn the Day of the Flag of Russia a shop-owner decided to decorate the show-window ...
分类:
其他好文 时间:
2015-04-27 23:41:04
阅读次数:
294
Please prove that you are the blog's owner by placing this code somewhere in a post:
TP:2AAB85C3
Place it somewhere where I can easily find it — you can remove the code in about 1-4 days....
分类:
其他好文 时间:
2015-04-27 16:54:00
阅读次数:
136
互次对象实现线程同步。
1.使用API函数操作互次对象。
函数CreateMutex用于创建并返回互次对象。
函数原型:
HANDLE CreateMutex( LPSECURITY_ATTRIBUTES lpMutexAttributes, // SD
BOOL bInitialOwner, // initial owner
LPC...
分类:
编程语言 时间:
2015-04-26 13:57:27
阅读次数:
222
1、ls文件属性:
-:普通文件
d:目录文件
b:块设备
c:字符设备文件
l:符号连接文件
p:命令管道
s:套接字文件
文件权限:
9位数字,每3位一组
文件硬链接次数
文件所属主(owner)
文件的属组(group)
文件大小(size),单位默认是字节
ls常用选项:
-l:显示文件属性..
分类:
系统相关 时间:
2015-04-23 13:45:04
阅读次数:
197
查询用户的索引select index_name,table_name,tablespace_name, index_type,uniqueness , status from dba_indexes where owner='SCOTT';查询用户的索引列select index_name,t.....
分类:
数据库 时间:
2015-04-17 15:24:08
阅读次数:
131
在一个数据库使用下面SQL找出了一批需要降低高水位线的表,其中有几个表没有数据,于是我打算用TRUNCATE来降低高水位线HWM SELECT a.owner, a.segment_name, a.segment_type, a.tablespace_name, a.blocks "real blo...
分类:
其他好文 时间:
2015-04-16 19:16:03
阅读次数:
198
Ø方法1NSArray *objs = [[NSBundle mainBundle] loadNibNamed:@"WNHAppView" owner:nil options:nil];这个方法会创建xib中的所有对象,并且将对象按顺序放到objs数组中Ø方法2bundle参数可以为nil,默认就是...
分类:
其他好文 时间:
2015-04-15 19:14:14
阅读次数:
117
从 Steve Jobs
身上学到最重要的二件事……
“对产品的质量,品味,絶不妥协”。
“对用人的标凖,绝不妥协”。
Steve Jobs 用人极为挑剔,他只要有创意,聪明绝顶又有点叛逆精神的人。
更重要的一点,Steve Jobs
只愿意和比他聪明的人一起工作。
正因为这样的用人哲学,Steve Jobs
永远能以 “未来驱动一切”;量子物理学;而由于能以 “未来驱动一切”...
分类:
其他好文 时间:
2015-04-14 11:12:58
阅读次数:
132
在Directshow中,我们可以对render指定显示窗口,在写程序的过程中, 发现通过put_Owner设置的显示窗口存在自动刷新问题,譬如窗口被遮挡然后再次露出时,被遮挡部分不能自动刷新,需要拖动窗口进行刷新。 网上搜索了一下,找到了解决问题的办法:http://blog.csdn.net/l...
分类:
其他好文 时间:
2015-04-13 12:22:05
阅读次数:
258