{"id":11203,"date":"2014-06-02T09:42:43","date_gmt":"2014-06-02T13:42:43","guid":{"rendered":"http:\/\/blog.xamarin.com\/?p=11203"},"modified":"2014-06-02T09:42:43","modified_gmt":"2014-06-02T13:42:43","slug":"design-native-ios-user-interfaces-in-your-favorite-ide","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/design-native-ios-user-interfaces-in-your-favorite-ide\/","title":{"rendered":"iOS User Interface design in Visual Studio and Xamarin Studio"},"content":{"rendered":"<p>\t\t\t\tThe <strong>Xamarin Designer for iOS<\/strong> is our state of the art, user interface creation tool for building iOS applications. Built into both Visual Studio and Xamarin Studio, it seamlessly integrates into the developer workflow. With this new designer, creating amazing iOS user interfaces is easier than ever before.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer1.png\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer1.png\" alt=\"designer1\" width=\"795\" height=\"420\" class=\"aligncenter size-full wp-image-11205\" \/><\/a><\/p>\n<p>The designer comes with a variety of great features such as design-time custom control rendering, design-time custom properties, and auto layout. It offers a fantastic experience integrating the design surface to the backing code, while maintaining complete support for the iOS storyboard format. Let&#8217;s take a look at some of what it has to offer.<\/p>\n<h2>Reference Controls Directly Without Outlets<\/h2>\n<p>Connecting controls to code happens by simply specifying the control&#8217;s <strong>Name<\/strong> in the <strong>Property Pad<\/strong>. It&#8217;s no longer necessary to create outlets as Xcode does. Once the <strong>Name<\/strong> is set, it can be immediately used in code to reference the control.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer2.png\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer2.png\" alt=\"designer2\" width=\"795\" height=\"420\" class=\"aligncenter size-full wp-image-11206\" \/><\/a><\/p>\n<h2>Automatic Creation of Event Handlers<\/h2>\n<p>Now your control&#8217;s events are automatically wired up to code rather than specifying actions and connecting them to a target, all you need to do is simply double-click on a control and the event handler is automatically created for you.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer3.png\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer3.png\" alt=\"designer3\" width=\"795\" height=\"420\" class=\"aligncenter size-full wp-image-11207\" \/><\/a><\/p>\n<p>Additionally, a control&#8217;s events are all available in the <strong>Property Pad<\/strong>. You can auto-generate an event handler there, or you can select any pre-defined method to handle the event.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer4.png\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer4.png\" alt=\"designer4\" width=\"366\" height=\"332\" class=\"aligncenter size-full wp-image-11208\" \/><\/a><\/p>\n<h2>Storyboards Fully Supported<\/h2>\n<p>The iOS designer supports all the great features of storyboards. Segues, orientation, device size selection and auto-layout are all available. You can even bring existing storyboards developed in Xcode into the designer and they will work seamlessly.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer5.png\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer5.png\" alt=\"designer5\" width=\"406\" height=\"379\" class=\"aligncenter size-full wp-image-11209\" \/><\/a><\/p>\n<h2>Design-time Custom Control Rendering<\/h2>\n<p>The richness of the iOS user interface is among the top reasons why iOS apps are so beautiful. iOS offers wonderful APIs for developing controls that developers use to create amazing user experiences. However, the design-time experience for custom controls in Xcode is not ideal. Other than the frame where the control is rendered, the Xcode designer doesn&#8217;t give much in the way of design-time support.<\/p>\n<p>With the Xamarin Designer for iOS, custom controls are rendered at design-time, offering a realistic view of what the control will look like in the user interface.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer6.png\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/designer6.png\" alt=\"designer6\" width=\"815\" height=\"444\" class=\"aligncenter size-full wp-image-11210\" \/><\/a><\/p>\n<h3>Design-time Properties<\/h3>\n<p>Even better, custom controls can be authored to make their own properties available in the <strong>Property Pad<\/strong> at design-time. Changing these properties causes the control&#8217;s view to refresh in the designer. This allows developers using the control to iterate on its look and feel before running the app, which makes it more efficient to work with custom controls, and makes using them in the designer a joy.<\/p>\n<h3>Backwards Compatible with iOS 6<\/h3>\n<p>If you have to provide support for iOS 6, the Xamarin Designer for iOS will even give you a live preview of what your full storyboard will look like when running on iOS 6. Simply select the <b>6<\/b> button in the designer menu and you will get a live preview.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/iOS6-Storyboard-1024x820.png\" alt=\"iOS6 Storyboard\" width=\"1024\" height=\"820\" class=\"aligncenter size-large wp-image-11252\" \/><\/p>\n<h2>Learn More with our Designer Documentation<\/h2>\n<p>We&#8217;ve assembled a variety of great documentation about the designer to get you going:<\/p>\n<p><a href=\"http:\/\/developer.xamarin.com\/guides\/ios\/user_interface\/designer\/\" target=\"_blank\">Xamarin Designer for iOS Overview<\/a>\n<a href=\"http:\/\/developer.xamarin.com\/guides\/ios\/user_interface\/designer\/introduction\/\" target=\"_blank\">Introduction to the iOS Designer<\/a>\n<a href=\"http:\/\/developer.xamarin.com\/guides\/ios\/user_interface\/designer\/designer_walkthrough\/\" target=\"_blank\">Walkthrough &#8211; Using the iOS Designer<\/a>\n<a href=\"http:\/\/developer.xamarin.com\/guides\/ios\/user_interface\/designer\/ios_designable_controls_overview\/\" target=\"_blank\">Designable Controls Overview<\/a>\n<a href=\"http:\/\/developer.xamarin.com\/guides\/ios\/user_interface\/designer\/ios_designable_controls_walkthrough\/\" target=\"_blank\">Walkthrough Using Custom Controls in the iOS Designer<\/a>\n<a href=\"http:\/\/developer.xamarin.com\/guides\/ios\/user_interface\/designer\/designer_auto_layout\/\" target=\"_blank\">Auto Layout with the Designer<\/a><\/p>\n<p>Having such a great designer built into Visual Studio and Xamarin Studio will enable developers to be even more productive than ever before. We&#8217;re excited to see the great user interfaces you will create with it.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Xamarin Designer for iOS is our state of the art, user interface creation tool for building iOS applications. Built into both Visual Studio and Xamarin Studio, it seamlessly integrates into the developer workflow. With this new designer, creating amazing iOS user interfaces is easier than ever before. The designer comes with a variety of [&hellip;]<\/p>\n","protected":false},"author":546,"featured_media":39167,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[6,4],"class_list":["post-11203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-ios","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>The Xamarin Designer for iOS is our state of the art, user interface creation tool for building iOS applications. Built into both Visual Studio and Xamarin Studio, it seamlessly integrates into the developer workflow. With this new designer, creating amazing iOS user interfaces is easier than ever before. The designer comes with a variety of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/11203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/546"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=11203"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/11203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/39167"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=11203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=11203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=11203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}