IOS--UISlider的使用方法// UISlider的常用方法UISlider*oneSlider = [[UISlideralloc]init];//最常用oneSlider.frame=CGRectMake(10,20,300,30);//设置位置和大小注意:UISlider的高度可以随便...
分类:
移动开发 时间:
2014-11-29 21:38:25
阅读次数:
266
IOS--UITextFiled的使用方法详细// UITextField的常用方法UITextField*oneTextField = [[UITextFieldalloc]init];//最常用oneTextField.frame=CGRectMake(30,30,260,35);//设置位置o...
分类:
移动开发 时间:
2014-11-29 21:37:28
阅读次数:
399
IOS--UILabel的使用方法详细//UILabel的使用UILabel*oneLabel = [[UILabelalloc]init];//最经常使用的oneLabel.frame=CGRectMake(0,0,320,200);//设置oneLabel的位置和大小oneLabel.text=...
分类:
移动开发 时间:
2014-11-28 21:26:12
阅读次数:
292
1 新建一个继承自uitableviewcell的类2 重写initwithstyle:reuseIdentifier方法 添加所有需要显示的子控件(不需要设置子控件的数据和frame) 进行子控件一次性的设置(有些属性只需要设置一次)3 提供一个模型属性4 重写模型属性的setter方法,在这.....
分类:
其他好文 时间:
2014-11-28 18:10:03
阅读次数:
101
//震动效果- (void)shake:(UIView *)view{ CGRect frame = view.frame; CAKeyframeAnimation *shakeAnimation = [CAKeyframeAnimation animationWithKeyPath:@...
分类:
其他好文 时间:
2014-11-27 21:54:26
阅读次数:
201
CGRect frame = [[UIScreen mainScreen] applicationFrame];//获取窗口大小 UIView *theView = [[UIView alloc] initWithFrame:frame];//实例一个UIView theView.backgr...
分类:
其他好文 时间:
2014-11-27 21:53:44
阅读次数:
115
1
电脑装成Linux之后,在Linux里面装虚拟机运行cocos2d-x-3.2时报如下错误:
plan3d.exe!cocos2d::GLView::initWithRect(const std::basic_string,std::allocator > & viewName, cocos2d::Rect rect,
float frame...
分类:
数据库 时间:
2014-11-27 06:49:13
阅读次数:
178
最近在研究android framework层的开发。 先来一张frame work的源码结构图...
分类:
移动开发 时间:
2014-11-26 19:01:03
阅读次数:
155
截取当前屏幕
UIGraphicsBeginImageContextWithOptions(CGSizeMake(CGRectGetWidth(self.superview.frame), CGRectGetHeight(self.superview.frame)), NO, 1);
[self.superview drawViewHierarchyInRect:CGRectMake(0, 0,...
分类:
移动开发 时间:
2014-11-26 16:43:51
阅读次数:
192
一、size中统计的text的大小与objdump中统计的一些大小不一致问题:
size(size.text ) == size( objdump.text + objdump.rodata + objdump.eh_frame)
二、.rodata段大小的计算方法
.rodata段存放的是常量。用C代码写一段程序,其中有些东西是被编译器放到.rodata段的。
例...
分类:
其他好文 时间:
2014-11-26 16:30:03
阅读次数:
488