Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
kennedy otis
3,570 PointsGPUIImage Filter
Hi guys! How can one make a process such as image filtering to operate in the background and may be show a spinner or something before its done then fetch the result once the process is done and display to user.. In my case I have this method
-(void)thumbnailClicked:(UITapGestureRecognizer*)sender {
UIView *view = sender.view; //Get selected view index
NSString *index = [NSString stringWithFormat:@"%d",view.tag];
[self.selectedImageView setImage:[[self getFilter:index] imageByFilteringImage:self.postedImage]];
}
This method basically gets the index of the thumbnail which was clicked, fetches the filter associated with that index and apply the folder currently loaded on the UIImageView. Am not quite good with ios dev yet, so there might be things which am handling wrongly.So if anyone has idea on how i can make this work smoothly,I will really appreciate. Right now it shows the image halfway done..I feel am doing something wrong and I can seem to figure out where :( Please help