Tag Archives: XIB

Create an IBDesignable UIView subclass with code from an XIB file in Xcode 6


via Create an IBDesignable UIView subclass with code from an XIB file in Xcode 6 — iPhoneDev.tv.

f you are using Xamarin.Forms to develop a UI for your mobile app, then you probably feel crippled by the lack of a designer. It can take a couple of minutes when making a simple change in your XAML file until you can see your change in action on your favorite emulator or device. This lag is known to cause a lot of frustration for developers working on UI design and can negatively influence productivity.

Xamarin recognized the need for a designer and announced at Evolve ’14 that they are working on a live renderer that could bridge the gap. The whole community has been patiently waiting and hoping for a solution. Finally, Daniel Cazzulino from the Xamarin VS team announced the initial version of the Xamarin Forms Player a few weeks ago.

The Xamarin Forms Player app enables UI developers to preview their XAML page almost real-time. It is accompanied by a Visual Studio extension that connects to a device running Xamarin.Forms.Player app. Every time you save a XAML page in Visual Studio, it will be pushed to the device and you’ll be able to preview it, and even interact with it.

XIBs & Autolayout: A guide to controls and keyboard shortcuts for managing constraints


via XIBs & Autolayout: A guide to controls and keyboard shortcuts for managing constraints – stable/kernel Blog.

One of the challenges to the iOS autolayout system when it first came out was that the interface for editing constraint-based XIB files was unforgiving. After many improvements to Xcode, this is no longer the case, but there are a lot of controls to sift through when building constraints, and that can be prohibitive to a beginner and costly to someone with experience.

In this article, I’ll identify some key UI elements of the autolayout interface and talk about some useful tips for working with autolayout. I’ll also go over my general approach to setting up constraints.

I will be writing a follow up article to this one on some common constraint techniques for things like UIScrollView and auto-sizing rows of items, so stay tuned for that in the next two weeks.

XIBs & Autolayout: A guide to controls and keyboard shortcuts for managing constraints


via XIBs & Autolayout: A guide to controls and keyboard shortcuts for managing constraints – stable/kernel Blog.

One of the challenges to the iOS autolayout system when it first came out was that the interface for editing constraint-based XIB files was unforgiving. After many improvements to Xcode, this is no longer the case, but there are a lot of controls to sift through when building constraints, and that can be prohibitive to a beginner and costly to someone with experience.

In this article, I’ll identify some key UI elements of the autolayout interface and talk about some useful tips for working with autolayout. I’ll also go over my general approach to setting up constraints.

I will be writing a follow up article to this one on some common constraint techniques for things like UIScrollView and auto-sizing rows of items, so stay tuned for that in the next two weeks.

Create an IBDesignable UIView subclass with code from an XIB file in Xcode 6


via Create an IBDesignable UIView subclass with code from an XIB file in Xcode 6 — iPhoneDev.tv.

Many times, I find myself wanting the visual power of both design and layout from Xcode 6’s new interface builder. I’m a visual person, and sometimes I like to create custom UIControl or custom UIView objects that can be reused.