doc: {
"_id" = f0550298e5914ca18c377bdeaed4795c;
"_rev" = "1-94ea5906d0daee5f79ddc9de4eb37935";
addr1 = "<null>";
addr2 = "<null>";
city = "<null>";
"created_at" = "2014-08-15T05:22:01Z";
email = "<null>";
"est_terms" = "<null>";
"inv_terms" = "<null>";
name = JJCo;
phone = "<null>";
pic = "";
plan = STARTER;
postal = "<null>";
slug = "jjco.leveler.com";
state = "<null>";
taxRate = "0.0825";
taxType = "<null>";
type = co;
}
I can NSLog(@"co.addr1 %@", co.addr1) and see "co.addr1 <null>"
While trying to assign the value to a UITextField, (an IBOutlet at "self.addr1") I have successful used
self.addr.text = co.addr1 ? co.addr1 : @"";
for quite some time.
But now I see the following error:
-[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7e8068
2014-08-15 15:13:57.448 lvlrios[43935:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7e8068'
On Aug 15, 2014, at 1:51 PM, jeremy <nods...@gmail.com> wrote:self.addr1.text = ([co.addr1 isEqual:[NSNull null]]) ? @"" : co.addr1;