Hi,
I'm pretty new to this framework but I like what I see. I'm just wondering if any one could explain why the UISwitch and UISlider components I have seem to 'lag' on user interaction?
What I am trying to do is have a Settings page appear. To make it easier for me to create and position the various 20+ settings options I thought I would use a .XIB and Interface Builder.
So, I present a modal view controller with my settings view as follows:
UIViewController *dummy = [[UIViewController] alloc] init];
[dummy setView: [[CCDirector sharedDirector] openGLView]];
SettingsViewController *setting = [[SettingsViewController] alloc] init];
[dummy presentModalViewController:settings animated:YES];
It all seems to work fine, I can dismiss the modal view fine too. If thats a totally backwards way of presenting a modal view controller please let me know.
But to the point, the UISwitch's and UISlider on this view lag when the user interacts.
I've tried the following:
Pausing via [[CCDirector sharedDirector] pause];
// showing settings, finish on settings then
Insert via [[CCDirector sharedDirector] resume];
Also tried the various DirectorTypes:
CCDirectorTypeNSTimer
CCDirectorTypeMainLoop
CCDirectorTypeThreadMainLoop
CCDirectorTypeDisplayLink
None of those things have improved the response of the UiKit elements.
Ideas?