Get Updates By E-mail 

Subscriber Counter
Article Written By:
Johann Dowa

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:

[pb_vidembed title="Glimpse" caption="" url="http://maniacdev.com/wp-content/uploads/2013/03/glimpse_51526739.mov" type="mov" w="240" h="360"]

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.

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments