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:
- (BOOL)canBecomeFirstResponder | |
{ | |
return YES; | |
} | |
-(NSArray *)keyCommands | |
{ | |
return @[ | |
[UIKeyCommand keyCommandWithInput:@"1" modifierFlags:0 action:@selector(debugCommand1)], | |
[UIKeyCommand keyCommandWithInput:@"2" modifierFlags:0 action:@selector(debugCommand2)] |
#!/bin/bash | |
# See http://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line | |
echo "Checking Xcode CLI tools" | |
# Only run if the tools are not installed yet | |
# To check that try to print the SDK path | |
xcode-select -p &> /dev/null | |
if [ $? -ne 0 ]; then | |
echo "Xcode CLI tools not found. Installing them..." |
#if DEBUG | |
// http://www.zero4racer.com/blog/480 | |
static void uncaughtExceptionHandler(NSException *exception) { | |
NSLog(@"CRASH: %@", exception); | |
NSLog(@"Stack Trace: %@", [exception callStackSymbols]); | |
// Internal error reporting | |
} | |
#endif | |
@implementation AppDelegate |
// | |
// UIView+Debug.m | |
// Symbols | |
// | |
// Created by Khanov on 16/03/14. | |
// Copyright (c) 2014 Khanov. All rights reserved. | |
// | |
#import "UIView+Debug.h" |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
// | |
// UIImage+ImageWithColor.h | |
// WordClock | |
// | |
// Created by James Rutherford on 2012-12-03. | |
// Copyright (c) 2012 Braxio Interactive. All rights reserved. | |
// | |
#import <MapKit/MapKit.h> | |
@interface DPAnnotationView : MKAnnotationView | |
@property (nonatomic, assign) MKMapView *mapView; | |
@end |
#ifdef DEBUGX | |
NSLog(@"%s %@", __FUNCTION__, objectToDisplay)); | |
#endif |