iphone - Take screenshots of a UIView including 3 UITableView(visible+invisible) part -
i have uiview having 3 uitableview , need take screen shot. problem invisible part of 3 tables . can find way take screen shot of whole view including complete scrolled contents of tables.
this helps contents of layer (ie. , uiview)
uigraphicsbeginimagecontext(tableview.frame.size); cgcontextref ctx = uigraphicsgetcurrentcontext(); [tableview.layer renderincontext:ctx]; uiimage *newimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext();
Comments
Post a Comment