-
Notifications
You must be signed in to change notification settings - Fork 304
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
Swift: Buttons not working #192
Comments
Hi there, what version are you using? Does the issue reproduce with |
yes |
I cannot reproduce the issue. If you could provide more details about how you present the bulletin it would be really helpful! |
issue persist not able to click the buttons handlers ain't working . |
@rdunlocked18 can you please share:
Thank you! |
below is the code snippet i am using for button actions handling in iOS 14 , simulator + tableview on Xcode 12 with latest version of your POD. ` func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
Screenshot of text being fetched over the title and i need that join button to be working that is really important :) |
@rdunlocked18 Ah okay - so the issue here is that you don’t keep a reference to the bulletin manager. The object gets deallocated when the table view delegate method returns. You need to keep a reference to it, you can look at the example project to see how it’s done. @simongiesen it’s probably the same issue for you, actually. Can you double check? |
i need to trigger BLTN on TableView Click can u hint me out how can i ?.. even if i lazy var it in the class the extension wont let the vars get through the mainClass so what should i do ? where should i create a reference of BLTNItemManager to get it onClick of tableView single cell .. i am a bit new in iOS |
You can have an optional variable on the class that’s presenting it: var bulletinManager: BLTNManager? and set it in did tap table view cell after you create it: let bulletinManager = ... (your code snippet)
self. bulletinManager = bulletinManager And once you dismiss it, call that in the dismissal handler: self.bulletinManager = nil Again, please look at the example project for help with the dismissal handlers and setting up the project. |
Hi everybody!
I try to add an action handler and alternative handler. It does not work ... Can anybody help me?
let bulletinManager: BLTNItemManager = {
let rootItem = BLTNPageItem(title: "Welcome")
`
The text was updated successfully, but these errors were encountered: