alexaubry / alexaubry/BulletinBoard

Swift: Buttons not working

Đang mở
#192 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug help wanted pending-feedback
Ngôn ngữ chính
Swift
Star
5.3k
Fork
301
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)
}()

`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.