加载中
Photos中常用类(获取展示功能相关)简介

简介 Photos framework是iOS8苹果提供的新的图片框架,能直接获取图片和视频,包括iCloud上面的图库。使用这个框架可以获取assets来展示和回放,编辑图片或者视频内容,或者使用系统相册、时...

2017/06/22 19:59
213
swift json转字典 - 字典转json

// json 转字典 func getDictionaryFromJSONString(jsonString:String) ->NSDictionary{ let jsonData:Data = jsonString.data(using: .utf8)! let dict = try? JSONSer...

2017/05/22 15:17
1.5K
swift 去掉字符串最后一个字符。

jsonString.remove(at: jsonString.index(before: jsonString.endIndex))

2017/05/22 15:15
7.3K
关于 range 与 NSRange

range 有两个属性。 1.location 2. length

2017/05/19 16:48
230
Unicode字符串转换

在写项目时遇到了这种情况。 后台的接口因为需要兼容JS,对返回的JSON做了UrlDecode。 所以我们要用 removingPercentEncoding 解码。 打印如下:

2017/05/19 16:40
12
swift 3.0以后 点击later 报以下错误

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] m...

2016/12/15 16:19
30
iOS 真机调试问题记录

The operation couldn’t be completed. Connection reset by peer Provisioning profile "iOS Team Provisioning Profile: com.guorenzhicheng.H-Students-XX" doesn't include signing cer...

2016/12/14 10:22
524
Swift as、as!、as?三种类型转换操作符使用详解

as 使用场合 (1)从派生类转化为基类,向上转型 (upcasts) class Animal {} class Cat: Animal {} let cat = Cat() let animal = cat as Animal (2)消除二义性,数值类型转换 let num1...

2016/11/04 17:15
924
修改代码里同一个名字

放在单词上 小三角出来后 选择 Edit All in Scope

2016/10/11 11:50
144
swift 3.0 学习

The Basics Swift是一种新型的针对苹果系列产品的开发语言。尽管如此,Swift的发展是是从你C和OC中获取的。 Swift提供所有C和OC基础类型的版本,包括为整数,整数双浮点数和浮动,Bool布尔值,...

2016/10/09 09:15
25
pod

更新pod : bundle exec pod install

2016/09/26 20:04
40

没有更多内容

加载失败,请刷新页面

返回顶部
顶部