- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试自定义 AccountKit 的标题 View ,但它不显示标题 View 。这是我尝试的方式:
import Foundation
import AccountKit
class AccountKitUIManager: AKFSkinManager {
@objc override func headerViewForState(state: AKFLoginFlowState) -> UIView? {
let view = UIView.init(frame: CGRect.init(x: 0, y: 0, width: 100, height: 50))
view.backgroundColor = UIColor.blue()
return view
}
}
和
func signInWithPhoneNumber() {
let inputState = NSUUID().UUIDString
let vc: AKFViewController = accountKit!.viewControllerForPhoneLoginWithPhoneNumber(nil, state: inputState) as! AKFViewController
vc.delegate = self
vc.uiManager = AccountKitUIManager.init(skinType: AKFSkinType.Classic, primaryColor: UIColor.blue(), backgroundImage: UIImage(named: "Login-bg-new"), backgroundTint: AKFBackgroundTint.White, tintIntensity: 0.1)
vc.whitelistedCountryCodes = ["VN"]
self.presentViewController(vc as! UIViewController, animated: true, completion: nil)
}
怎么了?请帮我。谢谢
引用链接: https://developers.facebook.com/docs/accountkit/ios/customizing
最佳答案
你必须为此使用 UILabel,如果你只想显示空间 View (没有内容的 View ),请使用带填充的 UILabel。
关于iOS swift Facebook AccountKit 自定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50264665/
我有一个应用程序只支持一种语言,印度尼西亚语。那么如何将 Facebook 的 accountKit 语言更改为我们支持的语言呢? 我已经尝试了告诉我将这个配置放在 build.gradle 中的指南
我开始在我的应用程序中实现 Facebook 的 AccountKit SDK。在 UI 文档中,它清楚地为我提供了主题背景图像的属性,但这不起作用。 https://developers.faceb
使用 v4.14.0 的 AccountKit,当我呈现基本的时候 UIViewController 用于电话(短信)登录使用 viewControllerForPhoneLoginWithPhone
我尝试自定义 AccountKit 的标题 View ,但它不显示标题 View 。这是我尝试的方式: import Foundation import AccountKit class Accoun
我已经通过多个教程和示例在 JAVA 和 kotlin 中尝试过它,例如:https://github.com/fbsamples/account-kit-samples-for-android/tr
我正在尝试使用 javascript 实现 facebook accountkit。我遵循了 https://developers.facebook.com/docs/accountkit/web/i
我对 AccountKit JavaScript SDK 有疑问,当我将它与我的网站集成时,它在 Firefox 上运行良好,但在 Chrome 中它首先运行良好,但当我再次尝试使用它时,它给了我这个
我已将 accountkit 与提供的 account-kit ui 一起使用。有没有一种方法可以使用单独的布局屏幕(由我们设计),比如包括名称、电子邮件、位置等的另一个 EditText 字段以及自
我正在我一直在研究的基本应用程序模板上设置 AccountKit。我使用的示例是 AccountKit Plugin for Flutter 提供的示例. 现在,这到目前为止工作正常。 我所做的是,我
Facebook 介绍 AccountKit这可以帮助您仅使用您的电话号码或电子邮件地址快速注册应用程序——无需密码。它可靠、易于使用,并且让您可以选择如何注册应用。 我已阅读docs但不知道如何将
我有一个 android 项目,我想使用 facebook 帐户工具包。我进行了所有设置,但是当我运行该项目时,我收到此消息; E/AndroidRuntime: 500: Initializatio
Using this sample I am easily able to run and get access token但是当我在自己的应用程序中实现它时,它返回空值。 最佳答案 请确保您已启用
我一直在将 fb AccounKit 与我的 ionic 应用程序(NodeJS 服务器)集成。前端部分已经完成,我能够发送和接收 OTP 和成功状态。 但是,在从授权代码获取客户端 token 时,
我正在尝试 Facebook AccountKit,如下所示:https://developers.facebook.com/docs/accountkit/android/integrating 我
我正在尝试集成 Facebook AccountKit 以允许用户使用他们的电子邮件或电话号码进行注册。但是当启动 AccountKitActivity 时,应用程序崩溃,因为它无法膨胀“Constr
我是一名优秀的程序员,十分优秀!