tableview

iOS: display firebase data in tableView

落花浮王杯 提交于 2021-02-20 04:49:48
问题 I try to display data from a Firebase database into my tableView. The code worked using "Tabs View Controller", but for the purpose of the project I had to include a TableView in a classic ViewController. Here is the code that should get the data from the database, and further include it in the tableview. import UIKit import Firebase import FirebaseAuth import FirebaseDatabase class NewsfeedViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { var ref

Swift 4.2 Make bottom of tableView move up when keyboard shows

核能气质少年 提交于 2021-02-19 03:18:23
问题 Although I've searched, I'm confused about how best to approach this. I have a tableView where the bottom cell is an input to the list, in the same way apple reminders work. When there are too many items on the list, the keyboard covers the list and I can't see what I'm typing. My thought it I need to change the physical size of the table view and ensure it is scrolled to the bottom when the keyboard shows. Some have said keyboard observers but the majority of code I've found for this is out

Swift 4.2 Make bottom of tableView move up when keyboard shows

倖福魔咒の 提交于 2021-02-19 03:18:00
问题 Although I've searched, I'm confused about how best to approach this. I have a tableView where the bottom cell is an input to the list, in the same way apple reminders work. When there are too many items on the list, the keyboard covers the list and I can't see what I'm typing. My thought it I need to change the physical size of the table view and ensure it is scrolled to the bottom when the keyboard shows. Some have said keyboard observers but the majority of code I've found for this is out

Swift 4.2 Make bottom of tableView move up when keyboard shows

天大地大妈咪最大 提交于 2021-02-19 03:17:15
问题 Although I've searched, I'm confused about how best to approach this. I have a tableView where the bottom cell is an input to the list, in the same way apple reminders work. When there are too many items on the list, the keyboard covers the list and I can't see what I'm typing. My thought it I need to change the physical size of the table view and ensure it is scrolled to the bottom when the keyboard shows. Some have said keyboard observers but the majority of code I've found for this is out

How to define setOnAction for tableView rows?

时光怂恿深爱的人放手 提交于 2021-02-16 14:58:33
问题 I am writing a program with javafx and tableView feature. My purpose is when I click on a row of this table,another window opens and shows something but I don't know how to define something like setOnMouseClicked feature for my table. I searched a lot but I coudn't find a simple way This is my existing code that define table columns and rows.(rows are defined with observable feature) package sample; import javafx.application.Application; import javafx.collections.FXCollections; import javafx

How to define setOnAction for tableView rows?

陌路散爱 提交于 2021-02-16 14:58:06
问题 I am writing a program with javafx and tableView feature. My purpose is when I click on a row of this table,another window opens and shows something but I don't know how to define something like setOnMouseClicked feature for my table. I searched a lot but I coudn't find a simple way This is my existing code that define table columns and rows.(rows are defined with observable feature) package sample; import javafx.application.Application; import javafx.collections.FXCollections; import javafx

How to define setOnAction for tableView rows?

醉酒当歌 提交于 2021-02-16 14:58:04
问题 I am writing a program with javafx and tableView feature. My purpose is when I click on a row of this table,another window opens and shows something but I don't know how to define something like setOnMouseClicked feature for my table. I searched a lot but I coudn't find a simple way This is my existing code that define table columns and rows.(rows are defined with observable feature) package sample; import javafx.application.Application; import javafx.collections.FXCollections; import javafx

How can l put TableView inside CollectionViewCell?

大憨熊 提交于 2021-02-11 12:29:14
问题 I have a tableView with several cells (created by MVVM-architecture). In ViewController I fill my tableView like this: tbv.registerCells( withModels: FirstViewModel.self, SecondViewModel.self, ThirdViewModel.self) My task is to put my TableView in one cell of CollectionView. I thought l have to create CollectionView in my ViewController, after it create CollectionViewCell and CollectionCellViewModel, but how to do it exactly I don't understand. If you know, how to make it, help. 回答1: How I

How can l put TableView inside CollectionViewCell?

一世执手 提交于 2021-02-11 12:28:42
问题 I have a tableView with several cells (created by MVVM-architecture). In ViewController I fill my tableView like this: tbv.registerCells( withModels: FirstViewModel.self, SecondViewModel.self, ThirdViewModel.self) My task is to put my TableView in one cell of CollectionView. I thought l have to create CollectionView in my ViewController, after it create CollectionViewCell and CollectionCellViewModel, but how to do it exactly I don't understand. If you know, how to make it, help. 回答1: How I

How to animate the height changing of a header in section of a tableview?

你说的曾经没有我的故事 提交于 2021-02-10 19:55:58
问题 Developing an iOS application with Xcode ver 9.3, Swift. Could you tell me how to animate the height changing of a header in section of a tableview? A search bar is put in header in section. The search bar is switched to show and hide by tapping navigation bar button.(show: height of header = 44, hide: height of header = 0) I would like to animate when switching the search bar show and hide. The code is as follows. The height of a header in section is immediately changed without animation...