I need some kind of help with an explanation to understand how use a NSDirectory, i don´t know if is possible to insert a NSString or NSDictionary's data from a class "A" in another NSDictionary in class B
Class A
String
NSString *TwitterToken = accessTokenTwt;
NSString *twitterSecretToken = accessTokenSecret;
NSDictionary take the tokenExpires or another
- (NSMutableDictionary *)tokenAsDictionary
{
NSMutableDictionary *tokenDictionary = [[NSMutableDictionary alloc] init];
tokenDictionary[@"key"] = self.key;
tokenDictionary[@"secret"] = self.secret;
tokenDictionary[@"tokenExpires"] = @(self.tokenExpires);
tokenDictionary[@"requestAuthUrl"] = self.requestAuthUrl;
if (self.verifier) {
tokenDictionary[@"verifier"] = self.verifier;
}
return tokenDictionary;
}
Class B
NSMutableDictionary *args = [[NSMutableDictionary alloc] init];
[args setObject: [Insert here data from class A] forKey:@"access_token"];
[args setObject: @"1" forKey:@"expires"];