alexaubry / alexaubry/BulletinBoard

Swift: Buttons not working

未关闭
#192 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted pending-feedback
主要语言
Swift
星标
5.3k
派生
301
PR 合并指标
30 天内没有已合并 PR

描述

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")

rootItem.descriptionText = "Would you like to add Sample Data to your database?"
rootItem.actionButtonTitle = "Add"
rootItem.alternativeButtonTitle = "Not now"
rootItem.isDismissable = false

rootItem.actionHandler = { (item: BLTNActionItem) in
item.actionButtonTitle = "tapped"
}



rootItem.alternativeHandler = { (item: BLTNActionItem) in
print("Alternative button tapped")
}

return BLTNItemManager(rootItem: rootItem)
}()

`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。