This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#import <XCTest/XCTest.h> | |
#import "PMODownloadTaskQueues.h" | |
@interface PMODownloadTaskQueues_BasicTest : XCTestCase | |
@property (strong, nonatomic) PMODownloadTaskQueues *queues; | |
@end | |
@implementation PMODownloadTaskQueues_BasicTest | |
- (void)setUp { |
// | |
// PMODownloadTaskQueues_BasicTest.m | |
// UnitTestingExample | |
// | |
// Created by Peter Molnar on 17/07/2016. | |
// Copyright © 2016 Peter Molnar. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> | |
#import "PMODownloadTaskQueues.h" |
// | |
// PMODownloadTaskQueues_BasicTest.m | |
// UnitTestingExample | |
// | |
// Created by Peter Molnar on 17/07/2016. | |
// Copyright © 2016 Peter Molnar. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> | |
#import "PMODownloadTaskQueues.h" |
#import <XCTest/XCTest.h> | |
@interface UnitTestingExampleTests : XCTestCase | |
@end | |
@implementation UnitTestingExampleTests | |
- (void)setUp { | |
[super setUp]; |
#import <Foundation/Foundation.h> | |
@interface PMODownloader : NSObject | |
/** | |
Downloading and giving back the raw data result from the url. | |
@param url the source url |
#import "PMODownloader.h" | |
@implementation PMODownloader | |
- (NSData *)downloadDataFromURL:(NSURL *)url { | |
NSData *data = [NSData dataWithContentsOfURL:url]; | |
return data; | |
} | |
@end |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
/** | |
An example class for storing a downloaded image and it URL. | |
*/ | |
@interface PMOPictureWithURL : NSObject | |
/** | |
The stored image |
#import "PMOPictureWithURL.h" | |
//1 | |
#define CLASS_NAME NSStringFromClass([self class]) | |
#define INIT_EXCEPTION_MESSAGE [NSString stringWithFormat:@"Use [[%@ alloc] initWithPictureURL:]",CLASS_NAME] | |
@implementation PMOPictureWithURL | |
#pragma mark - Initializers |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
@interface PMOPictureController : NSObject | |
/** | |
The designated initializer, the picture's url is mandatory to pass. |