Created
August 29, 2012 03:21
-
-
Save eyeplum/3506484 to your computer and use it in GitHub Desktop.
A hack to use DTAttributedTextContentView for multiple column text.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MYAttributedTextView <DTAttributedTextContentView | |
def layoutFrame | |
layout_frame = super | |
rect = layout_frame.frame | |
rect = UIEdgeInsetsInsetRect(self.bounds, edgeInsets) | |
new_frame = DTCoreTextLayoutFrame.alloc.initWithFrame(rect, layouter:self.layouter) | |
new_frame | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment