【问题标题】:Estimote indoor location list can't work估计室内位置列表不起作用
【发布时间】:2015-12-02 09:07:40
【问题描述】:

我使用 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)

【问题讨论】:

    标签: ios swift swift2 estimote


    【解决方案1】:

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

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

    由于您使用 Swift 编写代码,您可能需要将 #import <EstimoteSDK/EstimoteSDK.h> 添加到您的 Objective-C 桥接头中,以便您的应用可以访问 ESTConfig 类。

    【讨论】:

    • 我已经用过ESTConfig的setupAppID:andAppToken了,但是App还是找不到我的estimote cloud。
    • 您是否收到任何错误消息?是调用failure 块还是success 块?
    • weakSelf!.ownLocationsArray = 位置为! NSMutableArray Threat1:断点 4.1
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-18
    • 1970-01-01
    相关资源
    最近更新 更多