alexaubry / alexaubry/BulletinBoard

populate collectionView based on data from TextFieldBulletinPage

Abierto
#109 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.