I found some sample is teach you how to draw on iphone
but it does not say how to save a view as image ?
Does anyone got idea ???
Or any sample will
In MonoTouch/C# as an extension method:
public static UIImage ToImage(this UIView view) {
try {
UIGraphics.BeginImageContext(view.ViewForBaselineLayout.Bounds.Size);
view.Layer.RenderInContext(UIGraphics.GetCurrentContext());
return UIGraphics.GetImageFromCurrentImageContext();
} finally {
UIGraphics.EndImageContext();
}
}