Skip to content

Instantly share code, notes, and snippets.

@eyeplum
Created August 29, 2012 03:21
Show Gist options
  • Save eyeplum/3506484 to your computer and use it in GitHub Desktop.
Save eyeplum/3506484 to your computer and use it in GitHub Desktop.
A hack to use DTAttributedTextContentView for multiple column text.
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