一个UILabel,如果内容很短的话就会垂直居中,但是我希望他顶端对齐,改怎么做?
UILabel *label = [[UILabel alloc] initWithFrame:self.view.bounds]; label.text = @"各种居中"; label.textAlignment = UITextAlignmentCenter; [self.view addSubview:label];
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。