I'm writing an iOS App where i need to get data from a SQL-Database over mobile Services from Azure.
After downloading the data I get a NSDictionary
with all attributes from the SQL-Table. If an attribute is empty, the value is NSNull
.
Is there a way to pass NSNull
to NSString
without an IF-Statement (I don't want to have 20 if statements..)?
NSNull
. Then you don't need lots ofif
statements. Just a simple method or function call. – OverwriteNSString*
, though, without any real difficulty. Maybe you need to give us an example of your problem. – Harvin