Core Text examples for iPhone/iPad

2019-03-08 09:07发布

I am looking for a Core Text example for iphone/ipad but with little luck. Any leads would be appreciated.

5条回答
爷的心禁止访问
2楼-- · 2019-03-08 09:34

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!

查看更多
爷、活的狠高调
3楼-- · 2019-03-08 09:34

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.

查看更多
Fickle 薄情
4楼-- · 2019-03-08 09:42

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.

查看更多
欢心
5楼-- · 2019-03-08 09:50

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

查看更多
疯言疯语
6楼-- · 2019-03-08 09:51
登录 后发表回答