iphone - How to capture the screen shot for transition -
i want capture screenshot transition between images.
- (uiimage *)captureview:(uiview *)view { cgrect screenrect = [[uiscreen mainscreen] bounds]; uigraphicsbeginimagecontext(screenrect.size); cgcontextref ctx = uigraphicsgetcurrentcontext(); [[uicolor blackcolor] set]; cgcontextfillrect(ctx, screenrect); [view.layer.presentationlayer renderincontext:ctx]; uiimage *newimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext(); return newimage; }
i call method during uiimageview playing transition of images, however, got still image in uiimageview cannot capture transition between images. can me out?
in simulator can hit shift 3 times slow animation down, might able catch transition then.
Comments
Post a Comment