Draw text and add to a UIImage iOS 5/6
问题 I have a textbox, where i want the written text to be added to a UIImage. How can i draw NSString to a UIImage? I´ve searched, and found lots of examples, but non of them works. Xcode just gives me lots of errors. Simply put, i want to draw a NSString to a UIimage. The UIImage should be the same size as a predefined UIImageView, and be placed in center. Any ideas? 回答1: i think solution is here..i have used this method in one of my application here lbltext is the object of my label. this