Skip to content
프로젝트

소개

UIView 녹화 라이브러리입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Glimpse

Glimpse is a simple library that allows you to create videos from UIViews. It records animations and actions as they happen by taking screen shots of a UIView in a series and then creating a quicktime video and saving it to your app’s document folder.

Setup

To setup Glimpse, add the Glimpse project file to your project or workspace. Import <Glimpse/Glimpse.h> where you want to use it.

Example Usage

Glimpse only uses 2 methods that start and stop recording your view.

#import <Glimpse/Glimpse.h>

@implementation myViewController
- (void)viewDidAppear
{
	    [super viewDidAppear:animated];
    
    	// Create a new Glimpse object.
	    Glimpse *glimpse = [[Glimpse alloc] init];
	    
	    // Start recording and tell Glimpse what to do when you are finished
    	[glimpse startRecordingView:self.view onCompletion:^(NSURL *fileOuputURL) {
        	NSLog(@"DONE WITH OUTPUT: %@", fileOuputURL.absoluteString);
	    }];

		// Create a subview for this example
    	UIView *view = [[UIView alloc] initWithFrame:CGRectInset(self.view.bounds, 40.0f 40.0f)];
	    view.backgroundColor = [UIColor greenColor];
	    view.alpha = 0.0f;
    	
    	[self.view addSubview:view];
    
    	// We are going to record the view fading in.
	    [UIView animateWithDuration:5.0 animations:^{
    	    view.alpha = 1.0f;
	    } completion:^(BOOL finished) {
	    	// Since our animation is complete, lets tell Glimpse to stop recording.
    	    [glimpse stop];
	    }];
 }
@end

Developer info

License

Read LICENSE file for more info.

관련 프로젝트 살펴보기

불러오는 중…