iOS 6 support & adding explicit long cast
Using respondsToSelector instead of floor()
Merge pull request #15 from anasb/master

iOS 6 support & adding explicit long cast