用处:开关空间,用于处理两种状态-(void)viewDidLoad{ [super viewDidLoad]; CGRect frame = CGRectMake(20,20,0,0); self.switch = [[UISwitch alloc]initWithFrame:frame]; //...
分类:
其他好文 时间:
2014-08-06 18:23:01
阅读次数:
213
-(void)viewDidLoad{//初始化self.btn1 = [UIBotton buttonWithType:UIButtonTypeRoundedRect];//设置大小self.btn1.frame = CGRectMake(20,20,100,50);//设置标题[self.btn...
分类:
其他好文 时间:
2014-08-06 17:41:01
阅读次数:
172
用处:输入控件-(void)viewDidLoad{ [super viewDidLoad];//设置大小CGRect frame = CGRectMake(20,20,150,40);//实例化UITextFieldself.tf = [[UITextField alloc]initWithFra...
分类:
其他好文 时间:
2014-08-06 17:16:41
阅读次数:
213
nsobject--uiresponder--uiviewuiresponder类定义了一些操作uiview有三个属性: frame, bounds, centercenter用于改变控件位置, bounds 用于改变控件大小UILabel控件:类似于c#的label。CGRect frame = ...
分类:
其他好文 时间:
2014-08-06 14:16:01
阅读次数:
196
现在,我们要添加一些功能,当你看不能倒带的电影,是不是很烦? 那么函数av_seek_frame功能看起来是多么赏心悦目。我们将让左,右箭头来回走在影片中通过一个小的向上和向下箭头很多,其中“三多一少”是10秒,“很多”为60秒。因此,我们需要设置我们的主循环,用来捕获击键。然而,当我们得到一个按键...
分类:
其他好文 时间:
2014-08-06 01:54:00
阅读次数:
286
1、定义form [javascript] view plain copy var?form1?=?Ext.create(‘Ext.form.Panel‘,?{?? ????id:‘form1‘,?? ????frame:?true,?? ????//title:?‘Form?Fields‘,?? ????//width:?...
分类:
Web程序 时间:
2014-08-05 14:28:30
阅读次数:
349
基本概念:I frame :帧内编码帧 又称intra picture,I 帧通常是每个 GOP(MPEG 所使用的一种视频压缩技术)的第一个帧,经过适度地压缩,做为随机访问的参考点,可以当成图象。I帧可以看成是一个图像经过压缩后的产物。P frame: 前向预测编码帧 又称predictive-f...
分类:
其他好文 时间:
2014-08-04 17:26:57
阅读次数:
263
原理实现勘误“实现”的视频中有个错误,如下背景移动时有个错误,看红色部分,近景归位时,第二张图片的下标是1if arrBG[0].position.x + arrBG[0].frame.width < speed{arrBG[0].position.x = 0arrBG[1].position.x=...
分类:
其他好文 时间:
2014-08-04 14:10:37
阅读次数:
294
_tableView = [[UITableView alloc] init]; _tableView.delegate = self; _tableView.dataSource = self; _tableView.frame = CGRectMake(kZero, 6...
分类:
其他好文 时间:
2014-08-04 13:39:27
阅读次数:
268
Frame Stacking
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 4074
Accepted: 1371
Description
Consider the following 5 picture frames placed on an 9 x 8...
分类:
其他好文 时间:
2014-08-03 18:06:45
阅读次数:
269