-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Milestone
Description
XCode 9.2
iOS 11
Eureka 4.01
I have a Custom Header from xib file that is displaying fine. But when I load a PushRow, make a selection, and the form comes back into view, the header is blank - no longer displaying the custom header view. If I scroll the form to where the header is off the screen, then scroll back to where header is visible - the custom header shows up again.
Followed the doc:
+++ Section("Unit Data"){ section in
var header = HeaderFooterView(.nibFile(name: "TableSectionHeader", bundle: nil))
// Will be called every time the header appears on screen
header.onSetupView = { view, _ in
// Commonly used to setup texts inside the view
// Don't change the view hierarchy or size here!
view.lblTitle.text = "test"
}
section.header = header
}
EDIT: It appears that the .onSetupView() is NOT being called when the form re-appears after selecting an item from a PushRow. It is being called when I scroll the header off the screen and back into view.
Thank you.
Reactions are currently unavailable