Giter VIP home page Giter VIP logo

Comments (5)

ittybittydude avatar ittybittydude commented on July 17, 2024

Hey Tom,

We haven't seen anything like that under iOS6 yet but haven't specifically tested for it. How many times did you have to invoke setFormDataSource before you started seeing that behaviour?

Cheers

Sean

On 15/09/2012, at 7:34 AM, TomSwift wrote:

In my app I'm experiencing a hang with repeated form reloads. (setting the formDataSource on an instance of an IBAFormViewController repeatedly). It doesn't happen with a simple tableView reloadData, but does after repeatedly calling setFormDataSource:

I've narrowed the problem down to the hiddenCellCache. If I comment out the following in IBAFormFieldCell then the hang goes away:

(void)didMoveToWindow { if (self.window == nil) { NSAssert((self.hiddenCellCache != nil), @"Hidden cell cache should not be nil"); // [self.hiddenCellCache addSubview:self]; } }
I haven't figured out why this hack isn't working in iOS6, nor how to otherwise fix it.. By disabling it in this way the next/previous functionality will break (which actually I'm OK with in this app.)

Is anyone else experiencing this and do you have any insights?


Reply to this email directly or view it on GitHub.

from ibaforms.

TomSwift avatar TomSwift commented on July 17, 2024

Typically 3. It seemed to happen most often when the number of cells exceeded the height of the screen.

I posted about this on StackOverflow, with my solution, here: http://stackoverflow.com/questions/12432781/ibaforms-issues-in-ios6

from ibaforms.

TomSwift avatar TomSwift commented on July 17, 2024

When I ran the app in the profiler I noticed that during the hang the app was spending all of it's time in UITableViewCell layoutSubviews. That led me to this fix in IBAFormFieldCell.m:

  • (void) layoutSubviews
    {
        if ( self.superview == self.hiddenCellCache )
            return;
        
        [super layoutSubviews];
    }

from ibaforms.

ittybittydude avatar ittybittydude commented on July 17, 2024

Good find Tom. Did you have any custom views/cells in your form or were they all stock IBAForm cells?

On 18/09/2012, at 5:49 AM, TomSwift wrote:

When I ran the app in the profiler I noticed that during the hang the app was spending all of it's time in UITableViewCell layoutSubviews. That led me to this fix in IBAFormFieldCell.m:

(void) layoutSubviews { if ( self.superview == self.hiddenCellCache ) return; [super layoutSubviews]; }

Reply to this email directly or view it on GitHub.

from ibaforms.

TomSwift avatar TomSwift commented on July 17, 2024

A mixture of both in my app. I believe for the form I was working with these were all stock.

from ibaforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.