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:
// Modified version of an Apple Docs example that accomodates for the extra milliseconds used in NodeJS/JS dates | |
// https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW1 | |
- (NSDate *)dateForRFC3339DateTimeString:(NSString *)rfc3339DateTimeString { | |
NSDateFormatter *rfc3339DateFormatter = [[NSDateFormatter alloc] init]; | |
[rfc3339DateFormatter setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'SSS'Z'"]; | |
[rfc3339DateFormatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; | |
// Convert the RFC 3339 date time string to an NSDate. |
/* Sometimes in iOS 7, a UITextView will be invisible until the user starts editing it or | |
the keyboard appears. Adding this somewhere after setup will fix this issue (either viewDidLoad or viewDidLayoutSubviews) | |
*/ | |
[self.textView.layoutManager ensureLayoutForTextContainer:self.textView.textContainer]; |