跳转到主要内容
This page documents a legacy SDK. Starting a new integration? Use the Yuno SDK. Already on a legacy SDK? Follow the migration guide.The new Yuno SDK (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) replaces the Full, Lite, Seamless, Render, Headless, and Secure Fields SDKs with one API across every platform. Legacy SDKs remain supported side by side during the transition and are scheduled for deprecation in 2027. Contact your Account Manager for migration planning.
通过设置外观字段来修改 Yuno iOS SDK 的样式(字体、按钮、颜色)。使用这些字段可以匹配您的应用品牌并提升一致性。如需了解所有 iOS SDK 参数和配置选项,请参阅 iOS SDK 通用参考。

外观配置

可用的自定义字段:
颜色配置请确保所有颜色都以 UIColor 指定,以保持兼容性。颜色可以来自 Xcode 的预定义调色板或商户的资源,但类型必须始终为 UIColor。
使用 Yuno.Appearance() 函数定义一个包含所有自定义设置的变量,以控制外观。然后在初始化 SDK 时传入该变量:

使用示例

示例(两种外观自定义):
Example 1 (left)
Example 2 (right)

地址自动补全

商户可以在 iOS SDK 中开启或关闭地址自动补全功能。开启时,SDK 会根据邮政编码查询自动填写地址字段。关闭时,用户必须手动输入所有地址信息。