{"id":11,"date":"2012-05-15T18:04:54","date_gmt":"2012-05-15T18:04:54","guid":{"rendered":"http:\/\/www.vunet.us\/dev2\/?p=11"},"modified":"2012-05-15T18:07:22","modified_gmt":"2012-05-15T18:07:22","slug":"11","status":"publish","type":"post","link":"https:\/\/dev.vunet.us\/index.php\/iphone-development\/11\/","title":{"rendered":"Presenting UIViewController Modally with Transition Effects"},"content":{"rendered":"<p>These are a few ways of how to present UIViewController modally with transition effects.<\/p>\n<p class=\"htmlcode\">UIViewController *controller = [[[MyViewController alloc] init] autorelease];<\/p>\n<p>UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp;<\/p>\n<p>[UIView beginAnimations: nil context: nil];<\/p>\n<p>[UIView setAnimationTransition: trans forView: [self window] cache: YES];<\/p>\n<p>[navController presentModalViewController: controller animated: NO];<\/p>\n<p>[UIView commitAnimations];<\/p>\n<p>UIViewController *controller = [[[MyViewController alloc] init] autorelease];<\/p>\n<p>controller.view.alpha = 0.0;<\/p>\n<p>[navController presentModalViewController: controller animated: NO];<\/p>\n<p>[UIView beginAnimations: nil context: nil];<\/p>\n<p>controller.view.alpha = 1.0;<\/p>\n<p>[UIView commitAnimations];<\/p>\n<p>MyViewController *controller = [[MyViewController alloc] initWithNibName: @&#8221;MyTableView&#8221; bundle: nil];<\/p>\n<p>controller.delegate = self;<\/p>\n<p>controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;<\/p>\n<p>[self presentModalViewController: controller animated: YES];<\/p>\n<p>[controller release];<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These are a few ways of how to present UIViewController modally with transition effects. UIViewController *controller = [[[MyViewController alloc] init] autorelease]; UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp; [UIView beginAnimations: nil context: nil]; [UIView setAnimationTransition:<\/p>\n<a class=\"moretag noptoppad\" href=\"https:\/\/dev.vunet.us\/index.php\/iphone-development\/11\/\">Read More...<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-iphone-development"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":4,"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":14,"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions\/14"}],"wp:attachment":[{"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.vunet.us\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}