Questions tagged [ibdesignable]

IBDesignable is a designation given to views in Xcode 6 that allows them to be rendered directly in Interface Builder without the need to build and run the application.

279 questions
0
votes
2 answers

Button label color change doesn't work if font is also changed

Here is a simple example custom button that is set as a class of a button in IB: #import "TestButton.h" @implementation TestButton // Only override drawRect: if you perform custom drawing. // An empty implementation adversely affects performance…
farhadf
  • 1,918
  • 3
  • 19
  • 27
0
votes
0 answers

Issue with NSSlider and IBDesignable

So I've hit a strange issue that looks to be a bug. Whenever adding 'User Defined Runtime Attributes', it loses the style of the slider. If the @IBInspectable is it's default value, it's fine. But once an attribute is stored, it overrides the style.…
JoeBayLD
  • 939
  • 2
  • 10
  • 25
0
votes
2 answers

IB_designable externally

Ive been looking into IB_designable and it is a really awesome feature. However, one issue that I have with it is that for each view, I have to subclasses a UIView. And within that Subclass I have to specify the UI elements inside the…
DerrickHo328
  • 4,664
  • 7
  • 29
  • 50
0
votes
1 answer

IB_DESIGNABLE using attributed strings

I am using IB_DESIGNABLE on a UIView subclass because I want to be able to make an attributed string programmatically, but have it appear in Interface builder (saving me from having to run the app to see the formatting) I've been told that I can put…
-1
votes
1 answer

How can i see with @designable this design on storyboard

I'm using masking. My Code: class ViewController: UIViewController { @IBOutlet weak var firstImageView: UIImageView! @IBOutlet weak var seconImageView: UIImageView! let maskView = UIImageView() let maskView2 = UIImageView() …
user8790044
-1
votes
1 answer

IBDesignable ButtonView right border overlapping on orientation change (Landscape)

I have a problem managing my UITableView with IBDesignable ButtonView and orientation. Basically, the problem happens when I switch to landscape, right border of customView inside UITableViewCell is overlapping. This is only happening when I change…
Ali Ahsan
  • 985
  • 11
  • 16
-1
votes
1 answer

Interface Builder show all @IBInspectable in cascade

I'm maybe too complicated, but here is what I want: @IBDesignable class A: UIView { @IBInspectable var title: String = "" { didSet { setNeedsLayout() } } } @IBDesignable class B: UIView { var firstView: A =…
Dam
  • 579
  • 6
  • 22
-1
votes
1 answer

Making Gradient Background in Swift - The Right Way

This is my code for a gradient background. When I apply it on my view, it hides all my stuff on that VC, like it's on the front and everything else is pushed back. How can I make a gradient view that is not interfering with my elements? I'm using…
Kira
  • 1,575
  • 4
  • 26
  • 48
-1
votes
1 answer

iOS designable UITextField

I was trying to use the IBDesignable within my projects. Could somebody help me to find out how to make work this class? APTextField.swift on gitHub
tylyo
  • 572
  • 5
  • 16
1 2 3
18
19