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/