views:

811

answers:

1

I'm writing a drawing application that shows a tools view controller when the user clicks an item in a toolbar. However, several of my beta testers have reported that the tools palate opens too slowly. I'm using the standard presentModalViewController:animated: call to display the tools, and I've tried wrapping it in a code block like this to speed it up:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration: 0.1];
[self presentModalViewController:settings animated:YES];
[UIView commitAnimations];

Unfortunately, that doesn't work. If you say animated:NO it works better, but the underlying drawing canvas view is removed immediately (since the controller thinks it is no longer visible), and so the animation occurs over a white background.

Has anyone done this before that would be willing to offer some advice? I'd appreciate it!

A: 

A similar question is asked here.

You can also change the speed using this technique, but in my experimentation, it does so over a blank background, as you've suggested.

zpasternack
thanks for the tip zpasternack - I'll check it out!
Ben Gotow
looks like this is as as good as it's gonna get. answer accepted :-)
Ben Gotow
It can help if you change the background colour of your main window so its not white (match the colour of your app maybe) - its marginally better.
TimM