alexaubry / alexaubry/BulletinBoard

populate collectionView based on data from TextFieldBulletinPage

Đang mở
#109 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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, was wondering how one would go about populating a collection view with cells using the text from a TextFieldBulletinPage: I've made a TextFieldBulletinPage with a static func where I try and do this. I tried treating it as a alert. So far, I've been able to save the data from the custom TextFieldBulletinPage to Firebase, no luck with treating the bulletin as an alertview. pls pls any hints?

Here is my code

```
static func makeblockTextFieldPage() -> TextFieldBulletinPage {

let page = TextFieldBulletinPage(title: "block card")
page.isDismissable = true
page.image = UIImage(named: "block")
page.descriptionText = "tttttttttt."
page.actionButtonTitle = "Make my block"

page.textInputHandler = { (item, text) in
print("Text: \(text ?? "nil")")

let donePage = self.makeCompletionPage()
item.manager?.push(item: donePage)
```

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.