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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -