码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
UI部分bounds和frame
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //设置viewController的背景色,准确的说,我们是设置viewController的View的背景色...
分类:其他好文   时间:2015-06-24 14:14:31    阅读次数:97
ios view截图
- (UIImage *)cutFromView:(UIView *)view{ UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0); [view.layer renderInContext:UIGraph...
分类:移动开发   时间:2015-06-23 19:38:54    阅读次数:145
iOS view的frame和bounds之区别(位置和大小)
一、首先列一下公认的资料:先看到下面的代码你肯定就明白了一些:123456-(CGRect)frame{returnCGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.hei...
分类:移动开发   时间:2015-06-23 15:22:10    阅读次数:123
iOS动画编程
1、视图动画(UIViewAnimation) 可以改变视图的属性(Animatable UIView properties) frame:控制UIView的大小和该UIView在superview中的相对位置。 bounds:控制UIView的大小 center:控制UIView的位置 transfor...
分类:移动开发   时间:2015-06-20 23:34:59    阅读次数:340
获取屏幕宽高和系统色系
ios7下获取的屏幕高度[UIScreen mainScreen].bounds.size.height=1024ios8下获取的屏幕高度[UIScreen mainScreen].bounds.size.height=768 if ([[[UIDevice currentDevice] syste...
分类:其他好文   时间:2015-06-20 00:14:22    阅读次数:210
UIView动画
动画是iOS开发中的常用技术,iOS中动画主要分为UIView动画和CALayer动画,UIView动画本质也是CALayer动画 UIView动画可以给UIView的部分属性添加动画效果,支持动画的属性有:frame、center、bounds、alpha、transform、backgro...
分类:其他好文   时间:2015-06-19 21:30:32    阅读次数:204
iOS本地推送
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {     self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];...
分类:移动开发   时间:2015-06-18 22:20:15    阅读次数:202
IOS笔记049-UITabBarController
1、简单实现效果:在视图底部显示一个工具栏代码实现 // 创建窗口 self.window = [[UIWindowalloc] initWithFrame:[UIScreenmainScreen].bounds]; // 指定跟控制器 UITabBarController *tabBar = [[...
分类:移动开发   时间:2015-06-17 14:53:19    阅读次数:173
UIScrollView和UIPageControl
UIScrollView和UIPageControl 一般配合使用//创建一个滑动/滚动的视图,大小和当前视图大小一样(可以自定义大小) UIScrollView *scrollView=[[UIScrollView alloc] initWithFrame:self.view.bounds]; /...
分类:其他好文   时间:2015-06-16 22:37:30    阅读次数:227
转换坐标系的两种方式
1、在坐标系的转换中,这下面两种方式是等价一样 对应的意思就是说:我们的view1的从以原来的坐标系转化为以view2的原点为坐标系[心的frame就是以两个坐标系的点的值差]CGRect *frame1 = [self.view1 convertRect:self.view1.bounds to....
分类:其他好文   时间:2015-06-16 21:01:05    阅读次数:121
955条   上一页 1 ... 69 70 71 72 73 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!