alexaubry/BulletinBoard

Swift: Buttons not working

开放

#192 创建于 2020年10月7日

 (9 条评论) (0 个反应) (0 位负责人)Swift (302 个派生)batch import
bughelp wantedpending-feedback

仓库指标

星标
 (5,339 个星标)
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)
        }()
     

`

贡献者指南