码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
[Scala基础系列 10]Scala泛型、类型边界
1.泛型和类型边界1.1.上限(upper bounds)我们先看一个简单的实例,用于判断两个变量中较大的值,其中两个变量的类型均为Int型package com.tv189.advanced/** * Created by molyeo on 2015/8/12. */class PairInt(...
分类:其他好文   时间:2015-08-12 18:48:48    阅读次数:128
首次打开应用是显示引导页
-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{ //创建Window self.window=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]]; //判断要显示的Controller //1. NSString*versionKey=(NSString*)..
分类:其他好文   时间:2015-08-12 17:01:49    阅读次数:104
响应者链
在上面的图片中,如果touch点击的时候,是点击在view E里面。则检测过程是1.首先是touch点在view A的bounds中,接下来检测view B和view C.2.检测到touch点不在viewB,在viewC中,接下来检测viewD和view E.3.检测到touch点不在viewD中...
分类:其他好文   时间:2015-08-12 16:42:41    阅读次数:109
iOS 常用控件的方法属性总结
一 UIVIew 常见属性1.frame 位置和尺寸(以父控件的左上角为原点(0,0))2.center 中点 (以父控件的左上角为原点(0,0))3.bounds 位置和尺寸(以自己的左上角为原点 (0,0))4.transform 形变属性(缩放,旋转)5.backgroundColor 背景颜...
分类:移动开发   时间:2015-08-08 13:26:50    阅读次数:185
_DataStructure_C_Impl:Array
#include #include #include #define MaxArraySize 2 typedef int DataType; typedef struct{ DataType *base; //数组元素的基地址 int dim; //数组的维数 int *bounds; //数组的每一维之间的界限的地址 int *constants; //数组存储映像常量基地址 }Ar...
分类:其他好文   时间:2015-08-08 06:46:42    阅读次数:216
iOS开发——使用OC篇&frame,bounds,center,position,anchorPoint总结
frame,bounds,center,position,anchorPoint总结图层的position属性是一个CGPoint的值,它指定图层相当于它父图层的位置, 该值基于父图层的坐标系。图层的bounds属性是一个CGRect的值,指定图层的大小(bounds.size)和图层的 原点(bo...
分类:移动开发   时间:2015-08-07 23:47:32    阅读次数:3279
UI中的控件
这周我们学习了UI,下面是我的一些学习笔记://获得屏幕满屏时的数值CGRectrect=[UIScreenmainScreen].bounds;//创建一个Window让他显示在屏幕上self.window=[[UIWindowalloc]initWithFrame:rect];//设置window的背景颜色self.window.backgroundColor=[UIColorlightGrayColor];..
分类:其他好文   时间:2015-08-06 02:13:06    阅读次数:154
幕后英雄UIWindow
先看一段摘抄的代码 UIWindow*window = [UIApplication sharedApplication].keyWindow; self.frame =window.bounds; [windowaddSubview:self];看着很神奇,不是吗?居然可以直接往UIWindow上添加view,有点黑魔法的感觉。UIWindow究竟是什么,如何使用,我们一起往...
分类:Windows程序   时间:2015-08-05 20:31:44    阅读次数:209
iOS开发之----根据文本内容和字体大小计算UILabel的size
方法1:CGSize labelSize = [label中文本的内容(text) boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width - 10, MAXFLOAT) options:NSStringDra....
分类:移动开发   时间:2015-08-05 20:12:58    阅读次数:190
截屏并高斯模糊
//截屏获得当前的image - (UIImage *)imageOfView:(UIView *)view {     UIGraphicsBeginImageContext(view.bounds.size); //currentView 当前的view          [view.layer renderInContext:UIGraphicsGetCurrent...
分类:其他好文   时间:2015-08-05 14:55:42    阅读次数:164
955条   上一页 1 ... 63 64 65 66 67 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!