码迷,mamicode.com
首页 >  
搜索关键字:let    ( 14348个结果
再译《A *路径搜索入门》之四
■在A *方法总结 Summary of the A* Method ? 好了,现在你通过解释已经走了,让我们奠定了一步一步的方法,在同一个地方: Okay, now that you have gone through the explanation, let‘s lay out the step-by-...
分类:其他好文   时间:2015-06-09 06:23:15    阅读次数:121
Codeforces 549G. Happy Line 贪心
很有意思的贪心: Let's reformulate the condition in terms of a certain height the towers, which will be on the stairs. Then an appropriate amount of money of a person in the queue is equal to the hei...
分类:移动开发   时间:2015-06-09 00:56:31    阅读次数:361
Swift之单例模式
三种Swift实现单例模式的方法:全局变量,内部变量,dispatch_once方式1. 全局变量private let _singleton = Singleton() class Singleton: NSObject { class var sharedInstance: Sing...
分类:编程语言   时间:2015-06-08 13:20:17    阅读次数:128
第18章 逻辑运算符
逻辑运算符以两个布尔值或者返回布尔值的表达式为操作数。你使用这些运算符处理由或者为真或者为假的各个部分组成的表达式。逻辑运算符用来测试两个表达式都为真或者其中一个为true。下表列出并描述了Swift语言支持的逻辑表达式   例如,假设你已经有了两个变量,x和y,值分别为true和false。要测试x和y是否都为true,使用逻辑与运算符,如下所示 let x = true let y...
分类:其他好文   时间:2015-06-08 09:56:37    阅读次数:132
iOS开发——动画编程Swift篇&(三)CATransition动画
CATransition动画 1 // MARK: - CATransition动画 2 3 // /* 动画样式 */ 4 // let kCATransitionFade: NSString! //翻页 5 // let kCATransitionMov...
分类:移动开发   时间:2015-06-07 23:32:38    阅读次数:225
iOS开发——UI篇Swift篇&UIAlertView/UIActionSheet
UIAlertView/UIActionSheetUIAlertView 1 //一个按钮的提醒 2 @IBAction func oneButtonAler() 3 { 4 //创建单一按钮提醒视图 5 let oneButtonA...
分类:移动开发   时间:2015-06-07 23:18:59    阅读次数:416
ios开发——实用技术篇Swift篇&照片选择
照片选择 1 // MARK: - 选择照片 2 /*----- 选择照片 ------*/ 3 @IBAction func addImageButtonClick() 4 { 5 let actionSheet = UIActionSheet(ti...
分类:移动开发   时间:2015-06-07 23:18:53    阅读次数:817
iOS开发——动画编程Swift篇&(五)CAKeyframeAnimation
CAKeyframeAnimation 1 //CAKeyframeAnimation-关键针动画 2 @IBAction func cakFly() 3 { 4 let animation = CAKeyframeAnimation(keyPath: "po...
分类:移动开发   时间:2015-06-07 23:18:52    阅读次数:318
iOS开发——动画编程Swift篇&(四)CABasicAnimation动画
CABasicAnimation动画 1 //CABasicAnimation-不透明度 2 @IBAction func cabOpacity() 3 { 4 let animation = CABasicAnimation(keyPath: "opacit...
分类:移动开发   时间:2015-06-07 23:05:32    阅读次数:305
iOS开发——数据持久化Swift篇&(二)沙盒文件
沙盒文件 1 //******************** 5.2 文件操作 2 func use_FileOperations() 3 { 4 //1、获取程序的Home目录 5 let homeDirectory = NSHome...
分类:移动开发   时间:2015-06-07 23:04:42    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!