adding iOS 6 compatibility.

It's pretty much 1:1 feature-wise. with the exception of setting the textContainerInset. I could not find a suitable replacement for that in iOS 6 but it is probably not a big deal. My main purpose here was to get the component functional and usable in iOS 6 while folks are still trying to support it.