objective c - IOS Stop active queue -
i have queue responsible download images table view, , want stop queue when table view reloaded or segue new view controller. have tried sort of verification inside block none seem work.
if(!imagequeue){ imagequeue = dispatch_queue_create("com.loadimages", null); } dispatch_async(imagequeue, ^{ uiimage * image = [uiimage imagewithdata:[nsdata datawithcontentsofurl: [nsurl urlwithstring: urlstring]]]; });
Comments
Post a Comment