码迷,mamicode.com
首页 >  
搜索关键字:phoenix frame    ( 7592个结果
IOS--UISlider的使用方法
IOS--UISlider的使用方法// UISlider的常用方法UISlider*oneSlider = [[UISlideralloc]init];//最常用oneSlider.frame=CGRectMake(10,20,300,30);//设置位置和大小注意:UISlider的高度可以随便...
分类:移动开发   时间:2014-11-29 21:38:25    阅读次数:266
IOS--UITextFiled的使用方法
IOS--UITextFiled的使用方法详细// UITextField的常用方法UITextField*oneTextField = [[UITextFieldalloc]init];//最常用oneTextField.frame=CGRectMake(30,30,260,35);//设置位置o...
分类:移动开发   时间:2014-11-29 21:37:28    阅读次数:399
IOS--UILabel的使用方法详细
IOS--UILabel的使用方法详细//UILabel的使用UILabel*oneLabel = [[UILabelalloc]init];//最经常使用的oneLabel.frame=CGRectMake(0,0,320,200);//设置oneLabel的位置和大小oneLabel.text=...
分类:移动开发   时间:2014-11-28 21:26:12    阅读次数:292
通过代码自定义cell
1 新建一个继承自uitableviewcell的类2 重写initwithstyle:reuseIdentifier方法 添加所有需要显示的子控件(不需要设置子控件的数据和frame) 进行子控件一次性的设置(有些属性只需要设置一次)3 提供一个模型属性4 重写模型属性的setter方法,在这.....
分类:其他好文   时间:2014-11-28 18:10:03    阅读次数:101
UIView--震动效果
//震动效果- (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
错误问题:OpenGL version to old,GLViewinitWithRect(const stdbasic_stringchar,stdchar_traitschar,stdalloca
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层 学习笔记(一)
最近在研究android framework层的开发。  先来一张frame work的源码结构图...
分类:移动开发   时间:2014-11-26 19:01:03    阅读次数:155
iOS常用到的图片功能:截取当前屏幕/选择本地图片/图片压缩
截取当前屏幕 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!