alexaubry / alexaubry/BulletinBoard
populate collectionView based on data from TextFieldBulletinPage
- Lenguaje dominante
- Swift
- Estrellas
- 5.3k
- Forks
- 301
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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)
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.