With iOS, how to check if URL is empty
cocoa-touch, ios, url
Solution
Hmm, try
if ([URL isEqualToString:@"The URL?"]) {
Problem
I'm loading an JSON but i want to check of the `"URL": "",` in the json is empty sometimes the ID is empty how can i check? ``` if(URL == HOW TO CHECK IF EMPTY?) { } else { } ``` Error: ``` *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array' *** First throw call stack: ```