Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 8 issue with Section Footer and Root.Reload() #227

Open
bdn-mca opened this issue Sep 26, 2014 · 1 comment
Open

iOS 8 issue with Section Footer and Root.Reload() #227

bdn-mca opened this issue Sep 26, 2014 · 1 comment

Comments

@bdn-mca
Copy link

bdn-mca commented Sep 26, 2014

Hi,

I like using MonoTouch.Dialog in my apps, and it has been great until one issue appeared in iOS 8.
I have a few places in my app where i have Boolean Element in a Section, and when the user switches it, the Footer of the Section changes. Up to now, I've been doing it like this:

...
InvokeOnMainThread(() =>
{
       if (quickScanSection != null)
       {
            quickScanSection.Footer = quickScanElement.Value ? DefaultsFooter : string.Empty;
            this.Root.Reload(quickScanSection, UITableViewRowAnimation.Fade);
       }
});
...

However, since iOS 8, the application hangs on Root.Reload(). It doesn't crash or throw an exception, it just hangs, both on device and simulator.

Strange thing is that I have Root.Reload() on other places, where I'm changing values, titles etc. and it's working as expected, it only hangs if I try to change the section footer, and reload then.

@ggirard07
Copy link

Just hitting the same issue for customers since they have updated to iOS 8 (still same app binary from app store compiled months ago).
It happens every time we edit the dvc.Root element by adding/removing section once the dvc appeared.

The issue seems to be related to animations as when I set UIView.AnimationsEnabled = false the app does not hang.

slodge pushed a commit to MvvmCross/MvvmCross that referenced this issue Dec 12, 2014
…cessory view in a BooleanElement as the same time as the table view is reloaded. Possible fix for migueldeicaza/MonoTouch.Dialog#227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants