iPhone ProgrammingThis section covers various programming tips that I collected on the web. Where I know the original references, I include also a link to these.
UIView ImageIt is possible to let a UIView draw to a UIImage with following lines of code:
UIGraphicsBeginImageContext(self.bounds.size);The code comes from here.
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();