Open Source Library Allowing You To Easily Record What’s Happening In A UIView

Late last year I mentioned a pretty cool library that allows you record the user, the screen, and a user’s touches simultaneously to help with user interface testing.

Here’s another great library for recording from Wess Cope called Glimpse.

Glimpse is a very easy to use library that allows you to define recording start and end points within your code, and allows you to record the animations and actions that occur within a UIView. Glimpse automatically takes a series of screenshots at a desired time specified by you within the code and puts those screenshots together into a .Mov file.

Here’s a video created by running the example application:

Glimpse

And this code snippet from the readme shows how the recording was created with glimpse

@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 withCallback:^(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

You can find Glimpse on Github here.

A nice easy way to record video showing what happens within a view.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Open Source Library Allowing You To Easily Record What’s Happening In A UIView

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *