Re: please help with this handler issue

2013-08-29 Thread Uli Kusterer
On Aug 29, 2013, at 5:18 AM, Rick C. wrote: > [request2 performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse > *urlResponse, NSError *error) { > >if (responseData) { > >NSDictionary *user = >[NSJSONSerialization JSONObjectWithData:responseData >

Re: please help with this handler issue

2013-08-28 Thread Graham Cox
On 29/08/2013, at 5:18 AM, Rick C. wrote: > But this is an unreliable way to do this I know because I have problems. Can > someone please help me with the right way? Because I need for it to wait > before advancing or else it will cause problems in following code. Really > appreciate the t

please help with this handler issue

2013-08-28 Thread Rick C.
Hi, Not sure why I am struggling here but if someone could assist me that would be great. In one part of my code I'm calling this: [prefs setObject:[self userImage:[i valueForKey:@"username"] whichAccount:i] forKey:@"User Image"]; Which will in turn call this: - (UIImage *)userImage:(NSStrin