ios - 估计室内位置列表无法工作

标签 ios swift swift2 estimote

我使用 Estimote 室内位置示例来制作位置列表。但位置列表为空。我认为问题是应用程序找不到我的估计云。请告诉我如何解决这个问题。

代码:

 weak var weakSelf:ListViewController? = self
    let onSuccess:(AnyObject!) -> (Void) =
    { (locations:AnyObject!) in
        weakSelf!.ownLocationsArray = locations as! NSMutableArray
        weakSelf!.tableView.reloadData()
        weakSelf!.hadError = false;
        self.finishedSectionRefresh() 
    }
self.manager.fetchUserLocationsWithSuccess(onSuccess, failure: onFailure)

Screenshot

最佳答案

为了让应用程序“找到”您的 Estimote Cloud 帐户,您需要使用 ESTConfigsetupAppID:andAppToken:方法。您可以在以下位置生成 token :

https://cloud.estimote.com/#/apps/add/your-own-app

由于您使用 Swift 编写,因此可能需要添加 #import <EstimoteSDK/EstimoteSDK.h>到您的 Objective-C 桥接 header ,以便您的应用程序可以访问 ESTConfig类。

关于ios - 估计室内位置列表无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34038679/

相关文章:

ios - 在 SwiftUI 中将计时器传递给 subview

ios - 无法将行插入 UITableView - Swift 3

ios - 需要在所有 VC 中添加通用的 UIBarButtonItem

ios - 如何在 swift 中创建可变数量的 UIImageViews

swift - 添加的 subview 位置稍微偏离 - 我怎样才能把它放回原位?

ios - 在 Swift 2.0 中发出异步请求的正确方法

Facebook 登录 - 应用程序委托(delegate)中的 Sigabrt 错误和应用程序崩溃

ios - Firebase - 将多个值原子写入多个位置

iphone - 容器 View Controller 与复杂的 View 层次结构

ios - UIWebView - 我应该期望什么加载时间?