码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
第44讲:Scala中View Bounds代码实战及其在Spark中的应用源码解析
今天学习了view bounds的内容,来看下面的代码。//class Pair[T 0) first else second//}class Pair_NotPerfect[T 0) first else second}class Pair_Better[T second) first el...
分类:其他好文   时间:2015-09-05 23:47:15    阅读次数:173
获取硬件信息
得到显示器分辨率Dim X As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.WidthDim Y As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Heigh...
分类:其他好文   时间:2015-09-04 18:37:05    阅读次数:259
第43讲:Scala中类型变量Bounds代码实战及其在Spark中的应用源码解析
今天学习了scala的界定,先来看看下面这段代码//class Pair[T] (val first : T,val second : T)class Pair[T 0) first else second}class Pair_Lower_Bound[T](val first : T,val s....
分类:其他好文   时间:2015-09-04 18:35:13    阅读次数:149
康托展开
最近在搞新加坡的NOI2012的题,其中第二题Pancake可以用BFS解决,不过现在正在研究盖茨的《Bounds For Sorting By Prefix Reverse》,等研究出来一些成果会发布。目前能搞定的是BFS算法, 好在n最大为8,枚举量最多为8!,虽说有每个测试点可能有60...
分类:其他好文   时间:2015-09-03 21:40:09    阅读次数:199
UI中多线程的创建以及定时器与图片的异步加载
-(void)viewDidLoad{[superviewDidLoad];_imgView=[[UIImageViewalloc]initWithFrame:self.view.bounds];_imgView.contentMode=UIViewContentModeScaleAspectFit;[self.viewaddSubview:_imgView];//Doanyadditionalsetupafterloadingtheview,typicallyfromanib.////方法1//NSTh..
分类:编程语言   时间:2015-09-02 19:22:38    阅读次数:215
UI中多线程的创建以及定时器与图片的异步加载
-(void)viewDidLoad{[superviewDidLoad];_imgView=[[UIImageViewalloc]initWithFrame:self.view.bounds];_imgView.contentMode=UIViewContentModeScaleAspectFit;[self.viewaddSubview:_imgView];//Doanyadditionalsetupafterloadingtheview,typicallyfromanib.////方法1//NSTh..
分类:编程语言   时间:2015-09-02 19:22:35    阅读次数:172
ios 获取屏幕的属性和宽度
去掉状态栏尺寸 CGRect?r = [?UIScreen?mainScreen ].applicationFrame; r=0,20,320,460 屏幕尺寸 CGRect?rx = [?UIScreen?mainScreen ].bounds; r=0,0,320,480 状态栏尺寸 CGRect?rect;? rect?=...
分类:移动开发   时间:2015-09-02 16:04:48    阅读次数:141
CALayer的基本属性和contexts的内容 即添加图片
CALayer *superLayer=self.view.layer; //创建CALayer CALayer *subLayer =[CALayer layer]; //添加到父图层 [superLayer addSublayer:subLayer]; //尺寸 subLayer.bounds ...
分类:其他好文   时间:2015-09-01 09:10:07    阅读次数:133
iOS开发——错误总结篇&开发中常见错误和警告总结(二十七)
开发中常见错误和警告总结(二十七)项目总结错误一:index 4 beyond bounds [1 。。 3]解:数组角标越界错误二:this class is not key value coding-compliant for the key label解:连线错误,一般是没有删除对应的连线错误...
分类:移动开发   时间:2015-08-30 17:20:25    阅读次数:149
UIImageView(UIImage)的那些细节
1、设置动画 1 // 1)添加imageView 2 UIImageView *imageView = [[UIImageView alloc] 3 initWithFrame:self.bounds]; 4 // 2)动画照片数组 5 NSMutableArray*arrM = [NSMutab...
分类:其他好文   时间:2015-08-29 14:01:01    阅读次数:168
955条   上一页 1 ... 60 61 62 63 64 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!