我使用 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)
最佳答案
为了让应用程序“找到”您的 Estimote Cloud 帐户,您需要使用 ESTConfig
的setupAppID: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/