Estimote室内位置列表无法工作
问题描述:
我使用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)
答
为了让应用程序 “找到” 您Estimote云帐户,你需要使用ESTConfig
的setupAppID:andAppToken:
方法。您可以在生成令牌:
https://cloud.estimote.com/#/apps/add/your-own-app
既然你在写斯威夫特,你可能有添加#import <EstimoteSDK/EstimoteSDK.h>
到您的Objective-C的桥接报头,让您的应用程序能够访问到ESTConfig
类。
我已经使用了ESTConfig的setupAppID:和AppToken。但该应用程序仍然无法找到我的estimote云。 –
你是否收到任何错误讯息?被调用的'failure'块或'success'块? – heypiotr
weakSelf!.ownLocationsArray =位置为! NSMutableArray Threat1:断点4.1 –