-(id)initWithFrame:(CGRect)frame{ self=[super initWithFrame:frame]; if (self) { //使用self. 表示调用了set方法 retain了一次 self.lineArray=[NSMutableArray ...
分类:
移动开发 时间:
2014-11-11 20:45:26
阅读次数:
163
for(var?i=0,tags=document.querySelectorAll(‘iframe[src],frame[src],script[src],link[rel=stylesheet],object[data],embed[src]‘),tag;tag=tags[i];i++){
????var?a?=?document.createElement(‘a‘);
...
分类:
Web程序 时间:
2014-11-08 16:54:55
阅读次数:
365
CGRect frame = [[UIScreen mainScreen] bounds];NSLog(@"frame :%@",frame);这样输入是nullNSLog(@"frame :%f",frame.size.width);这样有值[[UIScreen mainScreen] bound...
分类:
移动开发 时间:
2014-11-08 10:21:02
阅读次数:
176
1、block的功能是实现代码的回调,简单高效[UIView animateWithDuration:1.0 animations:^{ //需要执行的代码 self.cover.alpha = 0.0; self.imageBtn.frame = CGRectMake(85, 8...
分类:
其他好文 时间:
2014-11-08 00:42:15
阅读次数:
147
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{ double pageDouble = self.headerScroll.contentOffset.x/self.headerScroll.frame.size.width; int.....
分类:
其他好文 时间:
2014-11-07 18:57:20
阅读次数:
145
框架和body只能有一个<framesetcolsrows></frameset>框架有常用两个属性设置子框架的比例对于内联框架只能写在body里面因为框架里只有frame设置框架的时候是通过两个行和列的属性设置并用<frame>代表一个框架体内联框架本身就是框架无法嵌套在<frameset&g..
分类:
Web程序 时间:
2014-11-07 15:04:46
阅读次数:
174
#import @interface UILabel (Create)/** * 创建普通Label * * @param frame frame * @param text text * @param font font * @p...
分类:
其他好文 时间:
2014-11-06 19:53:33
阅读次数:
181
九宫格或者其他类型的坐标设置frame.size.width = 60;//设置按钮坐标及大小frame.size.height = 60;frame.origin.x = (i%3)*(60 + 32)+40;frame.origin.y = floor(i/3)*(60 + 24)+60;
分类:
其他好文 时间:
2014-11-06 19:03:55
阅读次数:
164
Android Frame Animation: XML, Concepts and Optimization Frame Animation Concepts: Cels, Framerate, and Resolution 动画的发展 cel-base animation ras...
分类:
移动开发 时间:
2014-11-06 17:18:31
阅读次数:
182
//创建button遮挡 UIButton *cover = [[UIButton alloc]initWithFrame:self.view.frame]; [cover setBackgroundColor:[UIColor blackColor]]; cover.alpha ...
分类:
其他好文 时间:
2014-11-06 09:20:09
阅读次数:
205