Best architecture for an iOS application that makes many network requests?

After having tried several approaches, this is one architecture that is giving me excellent results, is easy to document, understand, maintain and extend: I have a single object taking care of network connectivity, let’s call it a “network manager”. Typically this object is a singleton (created using Matt Gallagher’s Cocoa singleton macro). Since you use … Read more

Fix warning “Capturing [an object] strongly in this block is likely to lead to a retain cycle” in ARC-enabled code

Replying to myself: My understanding of the documentation says that using keyword block and setting the variable to nil after using it inside the block should be ok, but it still shows the warning. __block ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:… [request setCompletionBlock:^{ NSDictionary *jsonDictionary = [[CJSONDeserializer deserializer] deserialize:request.responseData error:nil]; request = nil; // …. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)