ios - CTFramesetterSuggestFrameSizeWithConstraints : what attributes can be set?

标签 ios core-foundation core-text

CTFramesetterSuggestFrameSizeWithConstraints 的文档描述了 frameAttributes 参数:

Additional attributes that control the frame filling process, or NULL if there are no such attributes.

我只将此参数设置为 NULL,似乎找不到任何关于我可以将这些属性设置为什么的文档。 CTFramesetterCreateFrame 也采用 frameAttributes 参数,但那里也没有文档。

有谁知道这些参数的文档在哪里?

最佳答案

该参数名为frameAttributes,这意味着它们是在creating a frame 时有效的相同属性。并且您可以通过 asking the frame for them 检索.

文档没有直接说明框架可以具有哪些属性。但是,在 CTFrame 引用中,它确实有名为 kCTFrameProgressionAttributeName 的常量。 , kCTFramePathFillRuleAttributeName , 和 kCTFramePathWidthAttributeName ,以及需要常量值的两个值的常量。

因此,有根据的猜测:那些属性。

关于ios - CTFramesetterSuggestFrameSizeWithConstraints : what attributes can be set?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7534381/

相关文章:

ios - 将 sqlite3_column_value 转换为 Objective C 中的其他数据类型

iPhone 如何使用 ARC 正确处理 Core Foundation 引用?

iOS:在矩形中的一点绘制文本

objective-c - 为什么这是 CTFrame 的过度发布

iphone - 我怎么知道 AppDelegate 中的方向发生了变化

ios - Xcode剪贴板: Copy & Paste stuck

ios - 如何在其他开发人员设备上安装我的 xcode 项目进行测试

ios - 什么是CFNotificationCenter回调函数观察者?

objective-c - CFP 引用/库/首选项

ios - (NSCFType set) - iOS 6 中无法识别的选择器