Eureka: looking to update the section footer text dynamically ..

Created on 26 Jan 2016  Â·  4Comments  Â·  Source: xmartlabs/Eureka

I have a scenario where each row with a textfield has its own section and looking to use the section footer text to be dynamically updated to indicate the number of characters remaining in BLUE as the user types text and also to indicate in RED when the user exceeds the character limit.

In addition, I am trying to make the footer text a smaller font. Looking for suggestion on best way to do this. Currently, it appears that I can set a footer only when the Section is created and it has a standard font size.

Thanks in advance

section header footer

Most helpful comment

Is there a way to accomplish this without the TextField losing its focus when section.reload() gets called?

All 4 comments

You can set a new footer to the section but you must reload the section before it takes effect on the view.
You cannot change the font of the footer unless you use a custom view for it.

How do I just reload the section

Thanks

On Feb 18, 2016, at 8:59 PM, Mathias Claassen [email protected] wrote:

You can set a new footer to the section but you must reload the section before it takes effect on the view.
You cannot change the font of the footer unless you use a custom view for it.

—
Reply to this email directly or view it on GitHub.

If you are using the master version, there is a function reload in the Section class.
If not, wait a bit for it or just:

tableView.reloadSections(NSIndexSet(index: index), withRowAnimation: rowAnimation)

Is there a way to accomplish this without the TextField losing its focus when section.reload() gets called?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thlbaut picture thlbaut  Â·  3Comments

s1rc picture s1rc  Â·  3Comments

Tomas1405 picture Tomas1405  Â·  3Comments

jaylyerly picture jaylyerly  Â·  3Comments

Tomas1405 picture Tomas1405  Â·  3Comments