glaszig/SZTextView — pull request #20 by vlas-voloshin (2014-09-28 14:52:15+00:00)
Title: Use appropriate designated initializer on iOS 7 SDK and newer

When compiling against iOS 7 SDK or newer, the designated initializer of UITextView (and SZTextView as its descendant) is `-initWithFrame:textContainer:`, not `-initWithFrame:`. In this case, `-initWithFrame:` just calls the designated initializer.
Currently though, only `-initWithFrame:` and `-initWithCoder:` initializers are provided in SZTextView, which also breaks if client code would like to use custom text container to initialize SZTextView (yep, it works).
Provided solution uses conditional macros to ensure that an appropriate designated initializer is used for each iOS SDK version (`NSTextContainer` is unavailable for SDKs older than 7.0, and having both initializers would result in both of them called when `-initWithFrame:` is used by client code).