hijinks,
Your code looks good too. The only think I would suggest is modifying the uploadImage method to be like this:
Code:
- (IBAction)uploadImage {
[NSThread detachNewThreadSelector:@selector(doUploadOfImage) toTarget:self withObject:nil];
}
- (void)doUploadOfImage
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
... ALL OF THE ORIGINAL CODE THAT WAS IN - (IBAction)uploadImage ...
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
[pool release];
}
This will keep the UI from freezing if the upload is slow and it will get the little spinner going.
Nicely done!