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

NavigationController Hide Announcement #162

Closed
syedrazackimran opened this issue Jun 12, 2017 · 1 comment
Closed

NavigationController Hide Announcement #162

syedrazackimran opened this issue Jun 12, 2017 · 1 comment

Comments

@syedrazackimran
Copy link

Hi

I try to implement your lib. but i don't know how to resolve my problem . i try to show some Announcement on viewdidload .

let _announcement = Announcement(title: "title", subtitle: "subTitle", image: UIImage.init(named: "AppIcon40x40"), duration: 3) {
print("action clicked!")
Whisper.hide()
}
Whisper.hide(whisperFrom: self.navigationController!)
Whisper.show(shout: _announcement, to: self, completion: {
print("The shout was silent.")
})

its work's fine . but that announcement show behind of navigaionbar .. i need to show in front of navigation bar . kindly help me. thanks in advance . here i add screenshot kindly check it
simulator screen shot jun 12 2017 12 48 08 pm

@viktorasl
Copy link

Hi. I assume there is a problem that you're showing shout in view controller
Whisper.show(shout: _announcement, to: self, completion: {
because self is UIViewController. You need to do:
Whisper.show(shout: _announcement, to: navigationController!, completion: {

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

2 participants