Comments (5)
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.
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.
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.
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.
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)
- Create form from plist and use that form as data entry?
- CompleteForm: HOT 1
- TableView bounces when navigating between sections and/or form fields
- Add support for form field lookup using key paths HOT 1
- label widh
- TextForm field issue with empty value HOT 3
- [IBAFormsShowcase] Duplicate headers with grouping turned off
- Slider FormField HOT 1
- Cancel or Clear behavior for fields HOT 1
- IBATextFormField with default value? HOT 2
- UIKeyboard doesn't show Prev-Next-Done Buttons? HOT 1
- Newer tag for use with CocoaPods HOT 2
- Cannot clear text from fields of sections that don't have focus
- I'm stuck, can't see the whole form HOT 2
- Support for removing form fields
- Form Validation & Clear form
- how to get data from DetailViewController on return executionBlock?
- add support for landscape mode
- No ARC support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibaforms.