If you want to center the label vertically and horizontally, you can use the Align option on the storyboard. There are four options in the bottom right corner of the storyboard, and the first is the Align option, selecting it so you can choose the alignment for your object as follows:

Here, in the screenshot, you can see that I chose two options if I want to focus my object in both dimensions. You can select one of them or both based on your requirements and click the Add 2 restrictions button , and it will work sequentially for any screen size. However, be sure to select the object you want to center before choosing the Align option .
source
share