I am looking for a Core Text example for iphone/ipad but with little luck. Any leads would be appreciated.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- how do you prevent page scroll in textarea on mobi
- iOS (objective-c) compression_decode_buffer() retu
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
I have written a small project on Github that provides an Objective-C wrapper for Core Text: https://github.com/akosma/CoreTextWrapper In particular, it takes any string and renders it over multiple pages, with multiple columns each page. Hope it helps!
I implemented a class named OHAttributedLabel to create a UILabel that can draw NSAttributedString. This class uses CoreText for the whole rendering part, you can use this as a start if needed.
Core Text is a public framework on the Mac OS X. Any examples that work on the Mac, should be usable on the iPhone/iPad too.
See Core Text Programming Guide: Common Operations.
You can find an example of column layout tweaked to work with iPhone/iPad here: http://foobarpig.com/iphone/coretext-example-column-layout-with-correctly-inverted-text.html
you can find column layout with images in this post: http://www.raywenderlich.com/4147/how-to-create-a-simple-magazine-app-with-core-text