I have an iOS app which has a TMS TableView as the detail control of a TMS Popup. When I ask it to pop up, with a pre-loaded list of about 20 items, it takes a fair few seconds, 4 or 5, to appear. This is the same on an iPod Touch, and an iPad 2. Is this normal? How can I get better performance please?
I should add that it occurs on my PC too, so that may be useful.
Are you using BeginUpdate/EndUpdate calls during add the items?
The list is filled in FormCreate, with about 20 items. I do nothing more with it, except ask the popup to display which then shows the list.
As stated and asked before, are you using BeginUpdate and EndUpdate. Please post your code here so we can investigate. More information can be found on
http://www.tmssoftware.com/site/tmsfmxtableview.asp?s=faq&show=561 for using BeginUpdate and EndUpdate
My code is below, but how does this affect anything? These "wrappers" usually cause updates to be slower. This is not an update issue, as the delay is long after the items were added.
It is impossible that BeginUpdate and EndUpdate makes thing slower, whenever you call Items.Add the list will update itself. With a BeginUpdate and EndUpdate that update call is bundled and postponed until and EndUpdate is called.
I've tested on iOS 4.3, iOS5.1, and Windows7-64.
XE2 update 4. I will see if I can make a sample for you.
Okay, I'll put my comment here, as I got stopped from posting the LFM too as the forum thinks I'm spamming.
Thank you for your sample.
Thank you. I will try that on iOS just as soon as I recover from the mistake of upgrading to the latest XCode, which breaks the whole dev system.
Okay, got it working on iOS 4.3, and that makes it twice as long. It seems to be transparent, so maybe that is why.
Okay, did a quick test, and removed the DetailControl which is the TableView, and it pops up instantly. This points at the TableView being the slow part. I notice there are some animations in the styles - one to do with opacity. Might that be a cause? On iOS, with the simple data above, I'm able to count to 12 seconds (in my head) before the list appears.
Matthew , Thanks for introducing me to this component . It is indeed very cool and I can think of doing so much with it. I just wish it was smoother or even better than the iphone native version.