Addressed issue 69 on mattgemmell/master

The fix adds iOS 6 compatibility.