I'm using the iOS Dropbox SDK and want to check if my App is already linked with a Dropbox account. So I do:
if (self.isLinked) {
NSLog(@"linked");
}
However self.isLinked
always returns YES
. Even after cleaning and resetting the iPhone Simulator.
This only occurs when running in the iOS simulator not on a real device. I don't know why this happens, but the Dropbox SDK on the Simulator also is linked if its host Mac is linked with a Dropbox account.
To get realistic behavior in the Simulator unlink your Mac in the Dropbox Preferences.