BulletinBoard icon indicating copy to clipboard operation
BulletinBoard copied to clipboard

populate collectionView based on data from TextFieldBulletinPage

Open SigmundRakes opened this issue 7 years ago • 0 comments

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)

SigmundRakes avatar Aug 31 '18 21:08 SigmundRakes