Monotouch creating UIViews with using() blocks
- by Socram
When i first started using monotouch i found a page with some code samples for simple and frequent tasks... but on some of those code samples i found some things like this one:
var imageRect = new RectangleF(0f, 0f, 320f, 109f);
using (var myImage = new UIImageView(imageRect))
{
myImage.Image = UIImage.FromFile("myImage.png");
…