ios - 模拟 GMSPlace
问题描述
我目前正在使用 Google Places,并创建了一个抽象的地点选择器,也是使用 Google Places 的具体实现。
我正在为它做一些单元测试。我来到了要模拟 GMSPlace 的步骤(https://developers.google.com/places/ios-sdk/reference/interface_g_m_s_place)
问题是 GMSPlace 类的默认初始化不可用。
/**
* Default init is not available.
*/
- (instancetype)init NS_UNAVAILABLE;
有人可以分享我们如何在 init 不可用的情况下模拟事情吗?
谢谢
解决方案
推荐阅读
- vuejs3 - 使用 resolveDynamicComponent 基于对象动态创建 vue 3 组件
- audio - Clients -> Server -> Clients — 组音频合并
- sharepoint-online - 如果您只有“共享”链接,则获取 OneDrive 项目缩略图
- amazon-eks - 从 1.17 升级时,StartupProbe 在 EKS 1.18 上不起作用
- excel - 网页分页不变
- opencv - Java OpenCV错误占用读取图像的内存空间
- c# - (wpf) cefsharp - 缩放受缓存影响的多个窗口
- javascript - 如何在 stanza.js 中设置多用户聊天?
- amazon-web-services - 在将数据添加到 DynamoDB 之前检查数据是否有效的最佳方法是什么
- r - 为什么创建 R 函数不起作用