ios - How do I keep the constraints of my UILabels and put them in StackViews? -


notice in image below, 3 rows of 8's.

mockup

all 3 rows have been set width: 45px height 45px , following lines of code applied make them round:

self.wonlabel.layer.maskstobounds = true self.wonlabel.layer.cornerradius = self.wonlabel.frame.width/2 

however, want arrange these uilabels within stackviews (along appropriate label) keep neat , tidy in grid format.

when try place row of 8's in stackview, stackview automatically squashes width of each uilabel - notice 1st row of 8's.

how keep constraints of uilabels , put them in stackviews?


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -