One Quickie


Modal View Controllers (UIViewController->General)
Present a modal view controller (iOS 5 and beyond):
    [self presentViewController: vc  animated: YES
          completion: ^{
            NSLog (@"you complete me");
    }];
and to get rid of it
    [self dismissViewControllerAnimated: YES  completion: ^(void) {
            NSLog (@"kompressor does not dance");
    }];

Pre-iOS 5

Present a modal view controller:
    [self presentModalViewController: webview  animated: YES];
And to get rid of it (maybe from inside of the view controller that just got modalated)
    [self dismissModalViewControllerAnimated: YES];



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com