Comments (9)
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.
@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.
Hi there, what version are you using? Does the issue reproduce with 5.0.0-rc.2
?
from bulletinboard.
Hi there, what version are you using? Does the issue reproduce with
5.0.0-rc.2
?
yes
from bulletinboard.
I cannot reproduce the issue. If you could provide more details about how you present the bulletin it would be really helpful!
from bulletinboard.
issue persist not able to click the buttons handlers ain't working .
from bulletinboard.
@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.
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 :)
from bulletinboard.
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)
- 4.1.1 and 4.1.2 Blurview is clipped at the bottom of iPhone running iOS 13.6 HOT 5
- Xcode 12 - Double-quoted include in framework header, expecting angle-bracketed instead HOT 1
- iPad: do not show centered on the screen but on the bottom
- Add an option for manually setting dark mode on/off HOT 1
- Swift Compiler Warning: Cannot match several associated values at once HOT 3
- Crash on BulletinCloseButton HOT 1
- Crash when dismissing bulletin board HOT 2
- Landscape mode HOT 1
- Add dismissHandler to BLTNItemManager
- Adjust tableView height when keyboard appears HOT 2
- SwiftUI life cycle example
- How to add textfield ? HOT 3
- Documentation & Youtube Video Links Broken. HOT 1
- SwiftUi support
- Could not find module 'BLTNBoard' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: .../Build/Products/Debug-iphonesimulator/BLTNBoard.swiftmodule HOT 1
- Wrong title will be used after set alternativeButtonTitle
- Background color for alternativeButton? HOT 1
- Corner Radius for BLTNPageItem.image
- Position the board
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bulletinboard.