gpt4 book ai didi

cocoa-touch - UISegmentedControl 不随 super View 缩放

转载 作者:行者123 更新时间:2023-12-01 17:01:46 24 4
gpt4 key购买 nike

我有一个 UISegmentedControl我添加到一个简单的 UIView . UIView(分段控件的 super View )使用 UIView 动画进行缩放。它的内容模式设置为UIViewContentModeScaleToFill .但是,分段控件没有被缩放。

我错过了什么?

最佳答案

UISegmentedControl 的高度是固定的,如果你想缩放这个控件使用转换,比如.....

YourSegmentControll.transform = CGAffineTransformMakeScale(1.5,1.5);

关于cocoa-touch - UISegmentedControl 不随 super View 缩放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6027210/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com