【发布时间】:2013-11-29 16:51:57
【问题描述】:
当我使用 Dropbox Datastore API 并链接到另一台 iOS 设备时,我无法在我的数据存储区中获取数据,但我可以使用我设置为使用的第一台 iOS 设备获取数据存储区中的数据数据存储 API。这可能是什么问题?
在两个设备上运行的代码当然是相同的。
DBAccount * account = [[DBAccountManager sharedManager] linkedAccount];
DBDatastore *dataStore = [DBDatastore openDefaultStoreForAccount:account error:nil];
DBTable *table = [dataStore getTable:@"crane"];
__pastCranes = [InspectionBussiness getRecords:nil DBAccount:account DBDatastore:dataStore DBTable:table];
感谢大家的帮助!
【问题讨论】:
-
您有多个 Dropbox 帐户吗? (也许您要在两台设备上关联不同的帐户。)
-
刚查过,只用一个账号...
标签: ios mobile sync dropbox datastore