Reputation: 4532
I am working on something that could use from a UIView that can expand in either direction at will. Is there such a UIView in iOS? I am trying to make an app where the user will place squares on the board and depending on the situation might need to place the square either to the left, right, above or below the current square. The only way I can think of is to recreate a bigger UIView and place all the squares on it as needed. Is there a better way to do it?
Upvotes: 0
Views: 35
Reputation: 37300
I don't know what you mean by "at will"... If you mean not requiring any code, I don't think you can dynamically expand a view without code.
You could in fact expand a UIView
programmatically though, but I'd recommend looking into using a UIScrollView
and changing the content size programmatically if you need to place squares beyond the bounds of the screen.
Upvotes: 1