How do you keep the toolbar on top like the map app on iPhone?

When the page curl affect takes place, is curling my toolbar as well.



This is not easily done, unfortunately. It seems that Apple uses an undocumented mapCurl animation (that we aren't allowed to use).

Tim Arnold has a solution listed here on stack overflow. I tried downloading his example from github, but the project has a few issues (I submitted an issue on github).

What I have done is to just curl the map out of the way and it will display whatever is behind it on the same containing View:

- (IBAction)curlMap:(id)sender {

    [UIView animateWithDuration:.5 animations:^{
        [UIView setAnimationTransition:self.mapCurledUp?UIViewAnimationTransitionCurlDown:UIViewAnimationTransitionCurlUp forView:self.mapView cache:YES];
        self.mapCurledUp = !self.mapCurledUp;
        self.mapView.hidden = self.mapCurledUp;
   } completion:^(BOOL finished){}];

This doesn't mimic the Maps app exactly, because it doesn't leave the map partially curled, but it close.

Need Your Help

What sorting algorithm is this?

c++ c sorting

Update: OK I see it's a bubble sort, but is it less efficient because it doesn't stop when there's no swap on a particular run? It runs until first is null.

Lua custom number concatenation

lua metadata lua-table

I have been learning about metatables in Lua and I wanted to implement range operators as in Ruby, so I used this model