Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift UIToolbar上的角半径?_Swift - Fatal编程技术网

Swift UIToolbar上的角半径?

Swift UIToolbar上的角半径?,swift,Swift,我有一个圆角半径的视图。我在视图的底部添加了一个工具栏。工具栏具有硬边,因此角半径不可见 是否仍要向工具栏添加圆角半径?添加 self.layer.masksToBounds = true 添加到具有角半径的视图。添加 self.layer.masksToBounds = true 到具有角半径的视图

我有一个圆角半径的视图。我在视图的底部添加了一个工具栏。工具栏具有硬边,因此角半径不可见

是否仍要向工具栏添加圆角半径?

添加

self.layer.masksToBounds = true
添加到具有角半径的视图。

添加

self.layer.masksToBounds = true
到具有角半径的视图