Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to lock designable size of custom UView

I am making a custom activityIndicator. I wanted it to behave like UIActivityIndicatorView but with different animations.

When you place UIActivityIndicatorView to Storyboard the width and height of this view are locked for modification (grayed out).

There is no problem to make fixed width for the view in code but is it possible to make custom view the same way UIActivityIndicatorView is made: with width and height grayed out in storyboard?

like image 635
Thorax Avatar asked Feb 02 '17 09:02

Thorax


1 Answers

Thorax, good day!

Well, i found an answer for your question here!

Though it was 1.5 year ago, i don't think that something had changed

like image 189
Eugene Svaro Avatar answered Oct 01 '22 07:10

Eugene Svaro