加载中
RealmSwift

官网链接 简介 Realm是由美国YCombinator孵化的创业团队历时几年打造,第一个专门针对移动平台设计的数据库 Realm是一个跨平台的移动数据库引擎,目前支持iOS、Android平台,同时支持Objecti...

【Swift 5】将PHAsset对象转为UIImage对象

Swift 5 将PHAsset对象转为UIImage对象 //PHPAsset转UIImage func getImageFromAsset(asset: PHAsset) -> UIImage { let manager = PHImageManager.default() let option = PHImageReq......

CDN: trunk URL couldn't be downloaded: *** Response: Couldn't connect to server

进行swift开发,执行pod install时出现 CDN: trunk URL couldn't be downloaded: *** Response: Couldn't connect to server 错误,可以尝试如下两种解决办法: 1.执行 pod repo remove trun...

图片点击全屏预览+缩放(Swift 5.0)

图片点击全屏预览+缩放(Swift 5.0),直接上代码: import UIKit class ViewController: UIViewController ,UIScrollViewDelegate { var scrollView:UIScrollView? var lastImageView:UII......

2020/04/23 22:37
1.2K
'Primary key property 'name' does not exist on object 'RealmSwiftPermissionRole''

2020-04-10 23:06:08.994872+0800 LoveStorage[13562:165173] *** Terminating app due to uncaught exception 'RLMException', reason: 'Primary key property 'name' does not exist on ob...

The following Swift pods cannot yet be integrated as static libraries

pod install Analyzing dependencies Downloading dependencies Installing Realm (3.15.0) Installing RealmSwift (3.15.0) [!] The following Swift pods cannot yet be integrated as sta...

Xcode10 安装Alcatraz插件

Xcode升级到8.x以上版本后为了提升安全性, 防止XcodeGhost事件的发生, 添加了代码签名机制, 所以我们要使用插件第一步是给Xcode重新签名, 这是Xcode8+最为重要的一步 1.可能在老版本中的插件...

【30-swift-projects-in-30-days】swift 5 学习 03.Find My Position

【30-swift-projects-in-30-days】Swift 5 学习记录 在 03.Find My Position 项目中主要学习的是CLLocation定位。CoreLocation框架可用于定位设备当前经纬度,通过该框架,应用程序可通过附近...

【30-swift-projects-in-30-days】swift 5 学习 02.Watch'sDemo

【30-swift-projects-in-30-days】Swift 5 学习记录 在 02.Watch'sDemo 项目中主要学习的是SnapKit的进一步使用和定时器Timer,guard语句的使用。 1.Timer的使用 timer = Timer.scheduledTim...

【30-swift-projects-in-30-days】swift 5 学习 01.CustomFont

【30-swift-projects-in-30-days】Swift 5 学习记录 在 01.CustomFont 项目中主要学习的是自动布局库SnapKit的安装和使用。 1.SnapKit安装 Podfile内容如下: source 'https://github.com/C...

Conversion to Swift 5 is availiable 后SnapKit报错

将Swift 4.2 的项目转换为Swift 5时,如果项目中使用了SnapKit库,则直接转换后项目会报错。如下图: 解决办法: 1.确保Build Setings 里面的 User Header Search Paths 是下面的目录 $(PROJ...

检查用户的icloud是否已登录/开启【Swift4.2】

检查用户是否登录到iCloud?(Check if User is Logged into iCloud? Swift) 使用CloudKit存储用户私人数据时,必须判断用户的icloud是否开启【Swift4.2】 func isICloudContainerAvailable(...

SFSafariViewController的使用[Swift 4.2]

//导入SafariServices import SafariServices //覆写viewDidAppear方法 override func viewDidAppear(_ animated:Bool){ super.viewDidAppear(animated) let myURL = URL(string: "http......

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部