uber / uber-ios-sdk

Uber iOS SDK (beta)
https://developer.uber.com/docs
MIT License
376 stars 125 forks source link

LoginButtonDelegate protocol error #141

Closed rodrigoands closed 7 years ago

rodrigoands commented 7 years ago

Hi, i'm try integrate Uber SDK into my app. Login button create was successful but when i set LoginButtonDelegate method and try build show error: Type 'View Controller' does not conform to protocol 'LoginButtonDelegate'

Here my LoginButtonDelegate methods:

 func loginBt(button: LoginButton,
                         didCompleteLoginWithToken accessToken: AccessToken?,
                                                   error: NSError?) {

            if let token = accessToken {
                if let tokenString = token.tokenString,
                    let refreshToken = token.refreshToken,
                    let expirationDate = token.expirationDate {

                } 
        }
            func loginButton(button: LoginButton, didLogoutWithSuccess success: Bool) {

            }

Someone can explain why this issue occured ?