[MonoTouch] UrlImageStore concurrent limits

Pavel Sich pavel.sich at me.com
Tue Dec 20 16:15:41 EST 2011


Downloading images from Url is very common task in iOS apps. It is however important to limit the amount of threads being used as otherwise it gets pretty heavy on the CPU and whole device can be easily be clogged up.


There is a nice example from Redth on github to use, however I had problems running it as it failed to add operation to NSOperationQueue for me.


So I rewrote it to use Task Parallels from .NET 4 and it works like a charm.


Blogged at:


http://blog.touch4apps.com/home/iphone-monotouch-development/urlimagestore-concurrent-threads-limitting-helper 

Cheers,
-Pavel

--
Pavel Sich
@sichy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111220/d557cce1/attachment-0001.html 


More information about the MonoTouch mailing list