objective c - IOS - Request for member 'domain' not a structure or union? -
i'm trying token cookie. when error like:
"request member 'domain' not structure or union"
- (nsstring*)gettokenfromcookie { nshttpcookie *cookie; nshttpcookiestorage *cookiejar = [nshttpcookiestorage sharedhttpcookiestorage]; (cookie in [cookiejar cookies]) { if ([[cookie domain] isequaltostring:self.domain]) { if ([[cookie name] isequaltostring:@"oauth_token"]) { return [cookie value]; } } } return nil; }
this happens because of self.domain
you haven't declared @property
, or self
not think is.
Comments
Post a Comment