{"id":3405,"date":"2010-11-18T00:00:00","date_gmt":"2010-11-17T22:00:00","guid":{"rendered":"http:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/"},"modified":"2010-11-18T00:00:00","modified_gmt":"2010-11-17T22:00:00","slug":"uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode","status":"publish","type":"post","link":"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/","title":{"rendered":"UIModalPresentationFormSheet width and height for an iPad in landscape mode"},"content":{"rendered":"

In a recent application I was doing, I was designing an interface to be shown as a modal form sheet using setModalPresentationStyle:UIModalPresentationFormSheet. I searched the Apple documentation to find the exact dimensions of this sheet but it isn’t documented.<\/p>\n

It only states “The width and height of the presented view are smaller than those of the screen and the view is centered on the screen. If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed to prevent the user from interacting with them.”<\/p>\n

AuthenticationViewController *authentication = [[AuthenticationViewController alloc] \n    initWithNibName:@\"AuthenticationViewController\"\n    bundle:nil];\n[authentication setDelegate:self];\n[authentication setModalPresentationStyle:UIModalPresentationFormSheet];\n[self presentModalViewController:authentication animated:NO];\n[authentication release];\n<\/code><\/pre>\n

If others are looking for the same information, I can tell its dimension in landscape mode is 540×620. I got this by looking at [view frame].size<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"

In a recent application I was doing, I was designing an interface to be shown as a modal form sheet using setModalPresentationStyle:UIModalPresentationFormSheet. I searched the Apple documentation to find the exact dimensions of this sheet but it isn’t documented. It only states “The width and height of the presented view are smaller than those of … Continue reading UIModalPresentationFormSheet width and height for an iPad in landscape mode<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"yoast_head":"\nUIModalPresentationFormSheet width and height for an iPad in landscape mode • Peter Theill Site<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UIModalPresentationFormSheet width and height for an iPad in landscape mode • Peter Theill Site\" \/>\n<meta property=\"og:description\" content=\"In a recent application I was doing, I was designing an interface to be shown as a modal form sheet using setModalPresentationStyle:UIModalPresentationFormSheet. I searched the Apple documentation to find the exact dimensions of this sheet but it isn’t documented. It only states “The width and height of the presented view are smaller than those of … Continue reading UIModalPresentationFormSheet width and height for an iPad in landscape mode\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/\" \/>\n<meta property=\"og:site_name\" content=\"Peter Theill Site\" \/>\n<meta property=\"article:published_time\" content=\"2010-11-17T22:00:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@theill\" \/>\n<meta name=\"twitter:site\" content=\"@theill\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.theill.com\/#website\",\"url\":\"https:\/\/www.theill.com\/\",\"name\":\"Peter Theill Site\",\"description\":\"What\\u2019s going on in the personal life of Peter Theill\",\"publisher\":{\"@id\":\"https:\/\/www.theill.com\/#\/schema\/person\/d65d009363af2cc0a150b55dc20fa301\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.theill.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/#webpage\",\"url\":\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/\",\"name\":\"UIModalPresentationFormSheet width and height for an iPad in landscape mode • Peter Theill Site\",\"isPartOf\":{\"@id\":\"https:\/\/www.theill.com\/#website\"},\"datePublished\":\"2010-11-17T22:00:00+00:00\",\"dateModified\":\"2010-11-17T22:00:00+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.theill.com\/#\/schema\/person\/d65d009363af2cc0a150b55dc20fa301\"},\"headline\":\"UIModalPresentationFormSheet width and height for an iPad in landscape mode\",\"datePublished\":\"2010-11-17T22:00:00+00:00\",\"dateModified\":\"2010-11-17T22:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.theill.com\/#\/schema\/person\/d65d009363af2cc0a150b55dc20fa301\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.theill.com\/blog\/2010\/11\/18\/uimodalpresentationformsheet-width-and-height-for-an-ipad-in-landscape-mode\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.theill.com\/#\/schema\/person\/d65d009363af2cc0a150b55dc20fa301\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.theill.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f4f96a08152550e603ee595403f3ba57?s=96&d=retro&r=g\",\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\/\/www.theill.com\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack_shortlink":"https:\/\/wp.me\/p8TYI1-SV","jetpack-related-posts":[{"id":1864,"url":"https:\/\/www.theill.com\/blog\/2015\/11\/10\/sidse-figured-out-i-was-looking-for-cookies-at\/","url_meta":{"origin":3405,"position":0},"title":"Sidse figured out I was looking for cookies at Amaliegade 36 \u2013 View on Path.","date":"November 10, 2015","format":"gallery","excerpt":"Sidse figured out I was looking for cookies at Amaliegade 36 \u2013 View on Path.","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3404,"url":"https:\/\/www.theill.com\/blog\/2011\/01\/14\/how-to-get-display-name-from-nsscreen\/","url_meta":{"origin":3405,"position":1},"title":"How to get display name from NSScreen","date":"January 14, 2011","format":false,"excerpt":"While working on Wallpapery I needed to get a given screens display name. There is no \u201cdisplayName\u201d method on NSScreen so I added a category to provide this functionality. Seems like others are looking for this too so I\u2019m posting my code below. NSScreen+DisplayName.h #import @interface NSScreen (DisplayName) - (NSString\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3407,"url":"https:\/\/www.theill.com\/blog\/2010\/09\/02\/using-vi-for-your-simple-day-to-day-editing-needs\/","url_meta":{"origin":3405,"position":2},"title":"Using vi for your simple, day-to-day editing needs","date":"September 2, 2010","format":false,"excerpt":"My favorite editor isn\u2019t vi, but I\u2019m still using it at least a couple of times each day. It\u2019s a short two character command, it\u2019s always available and it starts fast. I have used it for decades and still, I only know these commands. I really don\u2019t need to learn\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1817,"url":"https:\/\/www.theill.com\/blog\/2016\/03\/06\/i-won-an-oscar-at-amaliegade-36-view-on-path\/","url_meta":{"origin":3405,"position":3},"title":"I won an Oscar at Amaliegade 36 \u2013 View on Path.","date":"March 6, 2016","format":"gallery","excerpt":"I won an Oscar at Amaliegade 36 \u2013 View on Path.","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1936,"url":"https:\/\/www.theill.com\/blog\/2015\/05\/02\/molly-and-i-dont-get-this-ladder-view-on-path\/","url_meta":{"origin":3405,"position":4},"title":"Molly and I don’t get this ladder \u2013 View on Path.","date":"May 2, 2015","format":"gallery","excerpt":"Molly and I don\u2019t get this ladder \u2013 View on Path.","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1948,"url":"https:\/\/www.theill.com\/blog\/2015\/03\/26\/i-can-finally-retire-at-amaliegade-36-view-on\/","url_meta":{"origin":3405,"position":5},"title":"I can finally retire at Amaliegade 36 \u2013 View on Path.","date":"March 26, 2015","format":"gallery","excerpt":"I can finally retire at Amaliegade 36 \u2013 View on Path.","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_validity":null,"_links":{"self":[{"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/posts\/3405"}],"collection":[{"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/comments?post=3405"}],"version-history":[{"count":0,"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/posts\/3405\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/media?parent=3405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/categories?post=3405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theill.com\/wp-json\/wp\/v2\/tags?post=3405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}