Hey guys..Im learning SQLite and I came across this feature.
self.author = (str) ? [NSString stringWithUTF8String:str] : @"";
I understand its taking the current string from the SQL and putting it into the defined string self.author using UTF8String formatting (becauses its stored in the SQL that way)...
So..what does the '?' in that have to do with it?
Thanks!
- Zac
self.author = (str) ? [NSString stringWithUTF8String:str] : @"";
I understand its taking the current string from the SQL and putting it into the defined string self.author using UTF8String formatting (becauses its stored in the SQL that way)...
So..what does the '?' in that have to do with it?
Thanks!
- Zac