Skip to content

Instantly share code, notes, and snippets.

View d-ronnqvist's full-sized avatar

David Rönnqvist d-ronnqvist

View GitHub Profile
@d-ronnqvist
d-ronnqvist / VideoView.m
Created November 8, 2013 08:55
This is the source code behind the Mac Video Wall that I was trying to port to iOS in [this Stack Overflow question](http://stackoverflow.com/questions/19065816/ios-alternative-to-qtmovielayer-that-has-non-nil-contents)
//
// VideoView.m
// MacVideoWall
//
// Created by David Rönnqvist on 9/28/13.
// This is the source code behind the Mac Video Wall that I was trying to port to iOS in [this Stack Overflow question](http://stackoverflow.com/questions/19065816/ios-alternative-to-qtmovielayer-that-has-non-nil-contents)
//
#import "VideoView.h"
@d-ronnqvist
d-ronnqvist / gist:6600444
Last active April 17, 2017 08:24
The purpose of this gist is to provide examples of many real life date computations This is uploaded as a gist so that it can be copy and pasted into either a OS X or iOS project. You can either take it all "[Cmd]+[A], [Cmd]+[C]" or just a small piece. The results are fairly well formattes as log output and I recommend that you run this code to …
// The purpose of this gist is to provide examples of many real life date computations
// This is uploaded as a gist so that it can be copy and pasted into either a OS X or
// iOS project. You can either take it all "[Cmd]+[A], [Cmd]+[C]" or just a small piece.
// The results are fairly well formattes as log output and I recommend that you run this
// code to see the actual results yourself. Change some of the values and see what happens.
#pragma mark - Setup
NSString *line = @"–––––––––––––––––––––––––––––––––––––––––––––––––––––––";
@d-ronnqvist
d-ronnqvist / TextHitTestingLabel.m
Last active December 19, 2015 03:29
The complete implementation of my answer to a StackOverflow question about how to hit test the actual text of a UILabel. http://stackoverflow.com/a/17379627/608157
//
// TextHitTestingLabel.m
// rotate
//
// Created by David Rönnqvist on 2013-06-29.
//
#import "TextHitTestingLabel.h"
#import <CoreText/CoreText.h>