Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-29-2008, 10:54 AM   #13 (permalink)
uprise78
Registered Member
 
Join Date: Apr 2008
Posts: 159
Default

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!
uprise78 is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,920
Threads: 38,707
Posts: 169,887
Top Poster: smasher (2,554)
Welcome to our newest member, neelkamalgarg
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:34 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.