Hello there,
I want to reload all section data because everytime i expand the section, it'll call network and put the response from network into button title.
In my viewdidload, i call a func called reloadAllData() and in my func reloadAllData() there's some code like this
func reloadAllData() {
if dataProducts.isEmpty == true {
self.requestSpinnerData()
} else {
oneSectionAlwaysOpen = false
sections = allSetions()
delegate = self
openAnimation = .fade
closeAnimation = .fade
}
}
When i segue into this view, it'll go to self.requestSpinnerData() because i'll use the data that i get from requestSpinnerData() for the section.title. and then it'll call reloadAllData() again for executing code inside else
And what i get is empty (there's no section inside my viewcontroller"
How i can reload all section after i call another function?
Thankyou
Hello there,
I want to reload all section data because everytime i expand the section, it'll call network and put the response from network into button title.
In my
viewdidload, i call a func calledreloadAllData()and in myfunc reloadAllData()there's some code like thisWhen i segue into this view, it'll go to
self.requestSpinnerData()because i'll use the data that i get fromrequestSpinnerData()for thesection.title. and then it'll callreloadAllData()again for executing code insideelseAnd what i get is empty (there's no section inside my viewcontroller"
How i can reload all section after i call another function?
Thankyou