0
我SignInViewController
完成用戶名和密碼字段後,當到目前爲止。線程1:信號SIGABRT(無法投類型的值「SignInViewController」到「AWSCognitoIdentityPasswordAuthentication」)
這是代碼的樣子:從SignInViewControllerExtension類
代碼
func startPasswordAuthentication() -> AWSCognitoIdentityPasswordAuthentication {
return self as! AWSCognitoIdentityPasswordAuthentication
}
我SignInViewControllerExtensions
拋出一個線程1:信號SIGABRT誤差在調試區以下信息:
無法投射'Elixr.SignIn'類型的值ViewController'(0x1001460a8)轉換爲'AWSCognitoIdentityPasswordAuthentication'(0x100134468)。
好吧,我將我的代碼,我忘了前加入。 –
@TimmyT這裏有什麼'self'?我猜這不是'AWSCognitoIdentityPasswordAuthentication' –
我添加了所有的代碼。 「自我」是指'SignInViewController' –