导航

上一页 1 2 3 4 5 6 7 ··· 30 下一页

2016年4月12日 #

Viewing the interface of your Swift code,查看Swift代码的头文件的三种方法

摘要: Technical Q&A QA1914Viewing the interface of your Swift codeQ: How do I view the interface of my Swift code in Xcode?问: 怎么在Xcode中查看swift文件的头文件?A:Xcode generates an interface file that includes all ... 阅读全文

posted @ 2016-04-12 11:56 淅沥枫 阅读(716) 评论(0) 推荐(0) 编辑

/.well-known/apple-app-site-association

摘要: Technical Q&A QA1919Incoming requests for /.well-known/apple-app-site-association fileQ: Why is my web server receiving requests forhttps://example.com/.well-known/apple-app-site-association?A:The ... 阅读全文

posted @ 2016-04-12 11:55 淅沥枫 阅读(4586) 评论(0) 推荐(0) 编辑

2016年3月31日 #

swift-Xcode7.x(7.1,7.2,7.3)新建playground运行不能运行

摘要: swift-Xcode7.xswift-Xcode7.x(7.1,7.2,7.3)新建playground运行不能运行Unable to find execution service for selected run destinatio解决方法1.关闭Xcode2.在终端执行两行代码 rm -rf ~/Library/Developer/CoreSimulator/Deviceskillall... 阅读全文

posted @ 2016-03-31 10:30 淅沥枫 阅读(284) 评论(0) 推荐(0) 编辑

2016年3月9日 #

swift,NSUserDefaults的swift化封装

摘要: NSUserDefaults第一部分:Swifty APIs: NSUserDefaults01传统弊端(方法太长)Verbosity02使用下边改进: The subscript03类型的问题Types04可能为空Optionals05Existence: key是否存在?06Optional assignment可选赋值07算法方面Arithmetic08简单的封装Wrapping upRes... 阅读全文

posted @ 2016-03-09 02:00 淅沥枫 阅读(2018) 评论(0) 推荐(0) 编辑

2016年3月5日 #

ViewController之间的转场和数据传递

摘要: ViewController之间的转场和数据传递 可以正向传递值, 反向传递值. 注意反向传值的时候,方法的位置: https://github.com/urmyfaith/GRDBUsage/blob/master/GRDBUsage/ViewControllers/MainTableViewCo 阅读全文

posted @ 2016-03-05 01:24 淅沥枫 阅读(336) 评论(0) 推荐(0) 编辑

Objective的宏到swift中该怎么办?

摘要: ReadMeQ1: typedef NS_ENUMQ2: 复杂的宏改何去何从?A1: 使用函数替换宏A2: 稍微多几个参数的宏定义Q3: 结构体转换Tip:从OC头文件显示转换成Swift接口文件参考资料:Q1: typedef NS_ENUMOC中的枚举被转换成了swif中的枚举: typedef NS_ENUM(NSInteger, PersonSexType) { PersonSex... 阅读全文

posted @ 2016-03-05 00:54 淅沥枫 阅读(2523) 评论(1) 推荐(0) 编辑

2016年2月28日 #

Git克隆部分文件

摘要: 克隆部分文件克隆部分文件总结一下一个完整的例子:克隆部分文件http://blog.csdn.net/linlzk/article/details/49019787在进行项目开发的时候,有时候会有这样的需求那就是:a56爆大奖在线娱乐们只希望从Git仓库里取指定的文件或者文件夹出来。在SVN里面,这非常容易实现,因为SVN基于文件方式存储,而Git却是基于元数据方式分布式存储文件信息的,它会在每一次Clone的时候... 阅读全文

posted @ 2016-02-28 21:23 淅沥枫 阅读(13990) 评论(4) 推荐(0) 编辑

2016年2月25日 #

swift @AUTOCLOSURE 和 ?? ||

摘要: swift @AUTOCLOSURE 和 ?? || @AUTOCLOSURE 和 ??由 王巍 (@ONEVCAT) 发布于 2014-08-20Apple 为了推广和介绍 Swift,破天荒地为这门语言开设了一个博客(当然a56爆大奖在线娱乐觉着是因为 Swift 坑太多需要一个地方来集中解释)。其中有一篇提到了一个叫做 @autoclosur... 阅读全文

posted @ 2016-02-25 00:40 淅沥枫 阅读(539) 评论(0) 推荐(0) 编辑

2016年2月23日 #

swift闭包 notes http://www.gittielabs.com

摘要: Swift ClosuresSwift Closures?—?Everyday Gems Part 1 of 2Today’s Swift topic is on Closures. Heading back to my C and C++ days, I would define a closure as a function pointer. C# developers would defin... 阅读全文

posted @ 2016-02-23 01:25 淅沥枫 阅读(451) 评论(0) 推荐(0) 编辑

2016年2月19日 #

iOS内存管理和优化 from 刘延军

摘要: 阅读全文

posted @ 2016-02-19 01:33 淅沥枫 阅读(165) 评论(1) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 30 下一页