mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-25 04:17:17 +00:00
docs: 批量博文
This commit is contained in:
10
Chapter1 - iOS/1.17.md
Normal file
10
Chapter1 - iOS/1.17.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# 对于不可调节高度的UI控件进行改变frame
|
||||
|
||||
* 对于不能调节高度的控件比如 UISlider、UISwitch、UIProgressView 等控件的宽高可以用 \(仿射变化\)transform 属性控制高度。
|
||||
|
||||
```
|
||||
myswitch.transform = CGAffineTransformMakeScale(1,5);
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user