Coder Social home page Coder Social logo

Comments (9)

alexisakers avatar alexisakers commented on June 26, 2024 2

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.

from bulletinboard.

alexisakers avatar alexisakers commented on June 26, 2024 1

@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?

from bulletinboard.

alexisakers avatar alexisakers commented on June 26, 2024

Hi there, what version are you using? Does the issue reproduce with 5.0.0-rc.2?

from bulletinboard.

simongiesen avatar simongiesen commented on June 26, 2024

Hi there, what version are you using? Does the issue reproduce with 5.0.0-rc.2?

yes

from bulletinboard.

alexisakers avatar alexisakers commented on June 26, 2024

I cannot reproduce the issue. If you could provide more details about how you present the bulletin it would be really helpful!

from bulletinboard.

rdunlocked18 avatar rdunlocked18 commented on June 26, 2024

issue persist not able to click the buttons handlers ain't working .

from bulletinboard.

alexisakers avatar alexisakers commented on June 26, 2024

@rdunlocked18 can you please share:

  • if you use the Objective-C or Swift version
  • what version of iOS you can reproduce this on
  • a code sample that reproduces the issue

Thank you!

from bulletinboard.

rdunlocked18 avatar rdunlocked18 commented on June 26, 2024

@alexisakers

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) {
let cell = scheduleTableMain.dequeueReusableCell(withIdentifier: "schCell" , for: indexPath) as! ScheduleTableViewCell
let classes : ScheduleClasses

    classes = classList[indexPath.row]
    let boardManagere : BLTNItemManager = {
        
        let item = BLTNPageItem(title: classes.name)
        item.requiresCloseButton = false
        item.descriptionText = classes.description
        //item.image = UIImage(named: "circleLogo")
        item.actionButtonTitle = "Join Class"
        item.alternativeButtonTitle = "More Info"
        item.isDismissable = true
        item.appearance.actionButtonColor = UIColor(named: "someCyan") ?? UIColor.blue
        item.actionHandler = {(item: BLTNActionItem) in
                print("Action button tapped")
        }
        item.alternativeHandler = {(item: BLTNActionItem) in
            print("Action button tapped")
        }
        
        return BLTNItemManager(rootItem: item)
        
    }()
    boardManagere.backgroundViewStyle = .blurredDark
    boardManagere.showBulletin(above: self)

} `

Screenshot of text being fetched over the title and i need that join button to be working that is really important :)

simulator_screenshot_CEA598C0-4AE1-4DA1-A064-316090C32E37

from bulletinboard.

rdunlocked18 avatar rdunlocked18 commented on June 26, 2024

@alexisakers

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

from bulletinboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.