上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页
摘要: 打开相机://先设定sourceType为相机,然后判断相机是否可用(ipod)没相机,不可用将sourceType设定为相片库 UIImagePickerControllerSourceType sourceType = UIImagePickerControllerSourceTypeCa... 阅读全文
posted @ 2014-10-28 17:04 wuhn 阅读(190) 评论(0) 推荐(0) 编辑
摘要: PhoneGap 和 Cordova的关系阐述是PhoneGap贡献给Apache后的开源项目,是从PhoneGap中抽出的核心代码,是驱动PhoneGap的核心引擎。你可以把他想象成类似于Webkit和Google Chrome的关系。Apache Cordova is an open-sourc... 阅读全文
posted @ 2014-10-28 15:39 wuhn 阅读(205) 评论(0) 推荐(0) 编辑
摘要: To Install, ensure that you have NodeJS installed, then open your commandline and run the following:$ sudo npm install -g phonegap Once ins... 阅读全文
posted @ 2014-10-28 15:32 wuhn 阅读(164) 评论(0) 推荐(0) 编辑
摘要: In my app, I am loading a resource heavy view that takes about 1 to 2 seconds to load. So I am loading it in a separate thread like this:hud = [[MBPro... 阅读全文
posted @ 2014-10-28 10:12 wuhn 阅读(359) 评论(0) 推荐(1) 编辑
摘要: The next group of slides covers methods and interfaces, the constructs that define objects and their behavior. 阅读全文
posted @ 2014-10-28 07:56 wuhn 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Let's explore Go's built-in support for complex numbers via thecomplex64andcomplex128types. For cube roots, Newton's method amounts to repeating:Find ... 阅读全文
posted @ 2014-10-28 07:54 wuhn 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Switch without a condition is the same asswitch true.This construct can be a clean way to write long if-then-else chains.package main import ( "fmt... 阅读全文
posted @ 2014-10-28 07:38 wuhn 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Switch cases evaluate cases from top to bottom, stopping when a case succeeds.(For example,switch i {case 0:case f():}does not callfifi==0.)Note:Time ... 阅读全文
posted @ 2014-10-28 07:35 wuhn 阅读(216) 评论(0) 推荐(0) 编辑
摘要: You probably knew whatswitchwas going to look like.A case body breaks automatically, unless it ends with afallthroughstatement.package main import ( ... 阅读全文
posted @ 2014-10-28 00:10 wuhn 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Let's have some fun with functions.Implement afibonaccifunction that returns a function (a closure) that returns successive fibonacci numbers.package ... 阅读全文
posted @ 2014-10-27 23:44 wuhn 阅读(359) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页