码迷,mamicode.com
首页 >  
搜索关键字:uicolor random    ( 8060个结果
[leetcode]Copy List with Random Pointer
Copy List with Random PointerA linked list is given such that each node contains an additional random pointer which could point to any node in the lis...
分类:其他好文   时间:2014-08-06 17:44:31    阅读次数:225
关于presentViewController的后的background变黑的问题
先看一下效果图: 用如下代码,想弹出一个模态窗口,设置它的背景透明度为0.5,却发觉prsent后的背景色变为黑色的。 ShareVC *share = [[ShareVC alloc] init]; [self presentViewController:share animated:YES completion:nil]; 起初还以为是设置透明度或者是[UIColor clear...
分类:其他好文   时间:2014-08-05 22:41:00    阅读次数:339
iOS UITextField设置placeholder颜色
设置UITextField的placeholder颜色 UIColor *color = [UIColor blackColor]; textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"密码"....
分类:移动开发   时间:2014-08-05 13:54:59    阅读次数:216
mongodb学习(六)索引
准备工作: 先插入100万条数据for(i=0;i<=1000000;i++){ db.users.insert({ "i":i, "username":"user"+i, "age":Math.floor(Math.random()...
分类:数据库   时间:2014-08-05 13:54:29    阅读次数:268
HDU 4790 Just Random 数学
链接:http://acm.hdu.edu.cn/showproblem.php?pid=4790 题意:从【a,b】中随机找出一个数字x,从【c,d】中随机找出一个数字y,给出p,m,如果(x+y)%p==m则算成功,问成功的概率是多少。 思路:【a,b】中连续p个数,【c,d】中连续p个数,用这2*p个数进行组合能找到p种的成功组合(具体不证),所以找到【a,b】中p循环的个数x1,【c,...
分类:其他好文   时间:2014-08-05 11:19:29    阅读次数:166
Radio Link Failure and Recovery
四种会发生Radio Link Failure的场景- DL Physical Layer Failure (PDCCH BLER > 10%)- Random Access Problems (in Connected State)- Failure after RLC retransmissio...
分类:其他好文   时间:2014-08-05 00:08:48    阅读次数:363
随机颜色-js
function ramColor() { return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).slice(-6); }
分类:Web程序   时间:2014-08-04 21:00:58    阅读次数:260
java 随机数的生成
生成10个不小于100000的6位数public static void main(String[] args) { Random random = new Random(); for (int i=0;i<10;i++) { System.out.println("第=="+...
分类:编程语言   时间:2014-08-04 20:43:17    阅读次数:231
HDU 4790 Just Random 【构造】
数学构造 容斥原理...
分类:其他好文   时间:2014-08-04 17:42:09    阅读次数:219
javascript 的 Math.ceil()、Math.floor()、Math.random()
向上取整——Math.ceil(args) 返回一个大于或等于参数的最小整数。 例如: Math.ceil(1.5) --> 2 Math.ceil(1) --> 1 Math.ceil(-1.5) --> -1向下取整——Math.floor(args) 返回一个小于或等于参数...
分类:编程语言   时间:2014-08-03 22:52:36    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!