iphone - How to take a screenshot when video playing? -


how take screen shot when video playing? used mpmovieplayercontroller video playing.

- (uiimage *) capturescreen  {     uiwindow *keywindow = [[uiapplication sharedapplication] keywindow];     cgrect rect = [keywindow bounds];     uigraphicsbeginimagecontext(rect.size);     cgcontextref context = uigraphicsgetcurrentcontext();     [keywindow.layer renderincontext:context];        uiimage *img = uigraphicsgetimagefromcurrentimagecontext();     uigraphicsendimagecontext();     return img; } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -