ibdesignable Questions

1

I would like to create generic extension for class to add some designables functionality to any UIView subclass and by this avoid adding functionality to all subclasses. So, would be nice to add ex...
Jailhouse asked 22/6, 2017 at 17:9

5

Solved

For those that don't know what I'm talking about, Xcode 6.0 added new features, IBDesignable and IBInspectable. When you tag your custom views with IBInspectable properties, those properties show ...

4

Solved

I tried to make @IBDesignable UIView subclass following this (link) tutorial. First custom view goes fine. But when I try to make another one, I have errors. First I got failed to update auto layou...
Multi asked 7/1, 2016 at 15:22

2

Solved

When I include my custom IBDesignable view in a storyboard or another nib, the agent crashes and throws an exception because it can't load the nib. error: IB Designables: Failed to update auto l...
Monte asked 29/2, 2016 at 12:58

2

I wanted to create a keyboard selection from @IBInspectabale How to achieve this I am creating a view, In which I insert an ImageView and a TextField, Now I am creating this custom view class a...
Hatchment asked 3/5, 2017 at 10:22

1

Solved

My IBImageView is like this: In LMLCommonIBImageView.h: #import <UIKit/UIKit.h> IB_DESIGNABLE @interface LMLCommonIBImageView : UIImageView @property (nonatomic, assign)IBInspectable CGFl...
Blen asked 20/4, 2017 at 9:22

4

Solved

I can not seem to get the "titleText" IBInspectable attribute working. I have a simple framework view with a UILabel which I create an IBInspectable variable "titleText". I note the inspectable "la...
Galcha asked 12/11, 2016 at 6:4

1

Solved

I am having this in MyClass.h file: #import <UIKit/UIKit.h> IB_DESIGNABLE @interface MyClass : UIView @end and this is the code from the .m file: -(void)awakeFromNib{ [super awakeFrom...
Inescutcheon asked 11/12, 2016 at 16:3

11

Solved

I have the following set of code: CustomView.h #import <UIKit/UIKit.h> IB_DESIGNABLE @interface CustomView : UIView @property (nonatomic) IBInspectable UIColor *borderColor; @property (no...
Kierstenkieselguhr asked 31/10, 2014 at 11:53

3

In short, I would like to create an @IBInspectable property that allows you to select from a list of things in a drop down menu when you are in Storyboards. Also if there is a way to create divider...
Anodyne asked 4/11, 2014 at 21:37

1

Solved

I'm trying to make use of IB_DESIGNABLE in my app. The problem is my app is huge and takes an appreciable amount of time to build (ie. many minutes), so I would like keep all my custom views in a ...
Hindrance asked 1/7, 2016 at 10:41

0

I was looking for some solution to this on this site and I found this answer which don't solve my problem. How to use custom UIView from external framework (file with extension .framework) in Inte...
Seasickness asked 7/7, 2016 at 11:10

3

Solved

This is a similar question to this but not quite the same. I have created a subclass of UITableViewCell which references a custom nib and marked it as @IBDesignable. Changes that are made both in ...
Nies asked 26/8, 2015 at 1:37

1

Solved

Seems like IBDesignable has some problems with multiple targets and swift modules. After I've added new target (my app has 2 targets now, e.g. seller and buyer), my StoryBoard began to halt views b...
Farleigh asked 9/10, 2015 at 8:28

1

Solved

This class will put perspective on an upright image. It works perfectly BUT does not work live in Storyboard with IBDesignable. Which is very sad. Is it possible to use CATransform3D and the like...
Inverness asked 18/5, 2016 at 23:27

1

Solved

Here is a IBLabel which tracks / stretches the font. It works perfectly in the build. But the change doesn't show live in Storyboard. // UILabel, but you can set // the tracking (that's the overa...
Almagest asked 17/5, 2016 at 2:23

5

Solved

I've been working on an app on and off for a few months starting with the first XCode 6/iOS 8 beta release. One of my favorite features added is live rendering, made possible with the @IBDesignable...
Galvez asked 6/11, 2014 at 6:3

6

Solved

I have a simple UIButton subclass that implements IBDesignable with an IBInspectable var: @IBDesignable class Button: UIButton { @IBInspectable var borderColor: UIColor = UIColor.whiteColor() { ...
Averett asked 25/9, 2014 at 5:9

2

Solved

I am trying to implement a simple UIButton subclass that is IBDesignable. I want the ability to set a color for each state of the control from Interface Builder. I know this is possible with the IB...
Centaurus asked 28/10, 2014 at 12:23

0

After I add @IBDesignable to a view controller, import UIKit @IBDesignable class IvCalcViewController: UIViewController { // ... } the following error shows up in Xcode 7.2 (7C68): file:///...
Aquamanile asked 15/12, 2015 at 3:26

2

Solved

I'd like to be able to layout my view controller in code but see the layout displayed in interface builder. I know I can create a UIView subclass, make that IBDesignable, and assign it to the view...

1

My custom button below works fine on the iOS Simulator - when I set a rotation in Interface Builder it rotates the button when I run the app. However, I can't see the rotation in the Story Board -...
Depolarize asked 5/11, 2015 at 13:10

1

When I'm using this guide to create a view that is designed in a XIB, reusable from within a storyboard using the IBDesignable attribute on my UIView subclass, how do I make it have a fixed size, a...
Subtraction asked 18/2, 2015 at 20:25

1

I am building my custom UIControl, a custom button built as an IBDesignable, which needs to change based on the size class in which it is being displayed. I have a method -setupForTraitCollection, ...
Nenitanenney asked 10/2, 2015 at 23:50

0

I use stroyboard create preview from xib, But I got these error: file:///Users/miaios/Desktop/Demo/XibDemo/XibDemo/Base.lproj/Main.storyboard: error: IB Designables: Failed to update auto layout st...
Paregoric asked 17/11, 2015 at 8:48

© 2022 - 2024 — McMap. All rights reserved.