09 2015 档案
摘要:swift1.2适配swift2.0 以下列举的是我在项目中遇到的需要修改的,基本常见的问题就没有罗列了。 1.find函数变成了为indexOf 2.sort变成了sortInPlace 3.sorted变成了sort 4.enumerate(self.tableView.visibleCells
阅读全文
摘要:Cannot assign a value of type '[CFString]' to a value of type '[String]'代码示例如下: picker.mediaTypes = [kUTTypeImage]修改如下:picker.mediaTypes = [kUTTypeIma...
阅读全文
摘要:Swift 2.0 : 'enumerate' is unavailable: call the 'enumerate()' method on the sequence如下代码: for (index,cell) in enumerate(self.tableView.visibleCe...
阅读全文
摘要:昨天遇到一个问题,在项目swift1.2适配swift2.0的过程中,修改完毕之后,运行报错如下:/Pods/NewRelicAgent/NewRelic_iOS_Agent_5.1.0/NewRelicAgent.framework/NewRelicAgent(CustomAnalyticEven...
阅读全文
摘要:如下是报错需要修改的源码:// if count(currentPassword) < 6 || count(newPassword) < 6 || count(confirmPassword) < 6 {// var failAlertView = UIAle...
阅读全文