Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguos reference makeToast #35

Open
ALAxHxC opened this issue Jun 6, 2017 · 0 comments
Open

Ambiguos reference makeToast #35

ALAxHxC opened this issue Jun 6, 2017 · 0 comments

Comments

@ALAxHxC
Copy link

ALAxHxC commented Jun 6, 2017

Ambiguous reference to member 'makeToast(message:)'
this all candidates:

func makeToast(message msg: String) {
makeToast(message: msg, duration: HRToastDefaultDuration, position: HRToastPositionDefault as AnyObject)
}

func makeToast(message msg: String, duration: Double, position: AnyObject) {
    let toast = self.viewForMessage(msg, title: nil, image: nil)
    showToast(toast: toast!, duration: duration, position: position)
}

func makeToast(message msg: String, duration: Double, position: AnyObject, title: String) {
    let toast = self.viewForMessage(msg, title: title, image: nil)
    showToast(toast: toast!, duration: duration, position: position)
}

func makeToast(message msg: String, duration: Double, position: AnyObject, image: UIImage) {
    let toast = self.viewForMessage(msg, title: nil, image: image)
    showToast(toast: toast!, duration: duration, position: position)
}

func makeToast(message msg: String, duration: Double, position: AnyObject, title: String, image: UIImage) {
    let toast = self.viewForMessage(msg, title: title, image: image)
    showToast(toast: toast!, duration: duration, position: position)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant