![]() This isn’t absolutely necessary, but as Marcus told me, it’s just easier to get in this habit as the XCode 2 method of creating your controller, instantiating it, and generating your code files from Interface Builder simply isn’t available in the same way in XCode 3.0. Self.addCirle(215, capRadius: 20, color: self. Create your code in XCode and let Interface Builder work with it. Self.addCirle(150, capRadius: 20, color: condColor) Self.addCirle(80, capRadius: 20, color: self.firstColor) So we will build a custom interface called “Rainbow” together. There is no better way to elaborate a feature than creating a demo. ![]() In this tutorial, I will give you an introduction to IBDesignable and IBInspectable, and show you guys how to take advantage of the new feature. Quite obviously, this is a huge productivity benefit. With the release of Xcode 6, Apple introduced a new feature known as IBDesignable and IBInspectable for developers to build custom controls and allowed us to live preview the design right in the Interface Builder. You would probably need to spend hours and hours on designing a single component. Every time you want to review the design changes, you can only test the control in the simulator. What makes it so hard is that you couldn’t see your design in the Interface Builder. Have you tried to create a custom control in older versions of Xcode? It’s not that easy. ![]() IOS Creating Your Own Custom Controls Using IBDesignable in Xcode 6 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |