码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
swift--如何设置子视图alpha不同于父视图
//1.2加入商家标题评分容器 let titleWarp=UIView(frame: CGRectMake(0, 150, screenObject.width, 50)); titleWarp.backgroundColor=UIColor.blackColor()....
分类:编程语言   时间:2015-11-27 17:02:59    阅读次数:169
C# Attribute(中)——Attribute本质论
小序:上篇里,我们把Attribute“粘”在类的成员方法上show了一把,让Attribute跟大家混了个脸儿熟。中篇里,我们将探讨“究竟什么是Attribute”和“如何创建及使用Attribute”这两个问题。准备好了吗?Let’s go! 正文:从上篇里我们可以看到,Attribute似乎总...
分类:Windows程序   时间:2015-11-27 14:49:51    阅读次数:551
LintCode: Compare Strings
C++ 1 class Solution { 2 public: 3 /** 4 * @param A: A string includes Upper Case letters 5 * @param B: A string includes Upper Case let...
分类:其他好文   时间:2015-11-27 06:38:11    阅读次数:127
hdu-5569matrix(dp)
http://acm.hdu.edu.cn/showproblem.php?pid=5569;题目意思:从(1,1)点出发只能向右和向下走,到达(n,n)点时所得到的价值最小,价值是Let the numbers you go through become an arraya1,a2,...,a2k...
分类:其他好文   时间:2015-11-26 14:53:38    阅读次数:159
On coin-tossing measure
Suppose that $\{X_i\}$ are i.i.d r.vs with $P(X_i=0)=p, P(X_i=1)=1-p, p\in (0,1).$ Let $X=\sum_{n=1}^\infty\frac{X_n}{2^n}=\sum_{n=1}^\infty Y_n$ and ...
分类:其他好文   时间:2015-11-26 06:58:47    阅读次数:207
Linux shell 变量自增
网上随便查阅了一下(http://www.cnblogs.com/iloveyoucc/archive/2012/07/11/2585559.html),有这几种方法:1. i=`expr $i + 1`;2. let i+=1;3. ((i++));4. i=$[$i+1];5. i=$(( $i...
分类:系统相关   时间:2015-11-25 21:42:39    阅读次数:186
Microsoft source-code annotation language (SAL) 相关
More info see: https://msdn.microsoft.com/en-us/library/hh916383.aspxSimply stated, SAL is an inexpensive way to let the compiler check your code for ...
分类:其他好文   时间:2015-11-25 16:58:32    阅读次数:162
swift01(变量,数组,字典)
// 变量 var myVarible = 42; myVarible = 50; print(myVarible);// 常量 let myConstant = 42; print(myConstant) var number : Int = 12//:类型标注//命名规范 可以使用中文和表情来命...
分类:编程语言   时间:2015-11-25 11:34:35    阅读次数:138
swfit中的一些放弃的我们需要注意的
1.swift中不再使用define这种方式定义宏,而是采用全局常量的方式定义。比如 let URL "www.xxx.com/1.jpg"2.swift中没有了performselector这类的方法(网上解释的说是swift不是基于消息机制的,我反正没明白为什么).所以在做相应的功能时还是使用g...
分类:其他好文   时间:2015-11-24 20:22:54    阅读次数:141
IOS_swift文件系统
func files(){ //应用根目录 let dir = NSHomeDirectory(); NSLog("dir = \(dir)") // 文档目录 let doc = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .Use...
分类:移动开发   时间:2015-11-21 22:48:13    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!