Xcode调整使用paintcode生成的矢量形状

时间:2016-08-01 14:33:59

标签: swift frame uibarbuttonitem paint-code

我使用Paintcode创建了一个矢量形状,我需要将图像绘制到BarButtonItem中;我知道我必须使用myBarButtonItem.image = StyleKit.imageOfCanvas1(CGRectMake(0, 0, 30, 30)),但这是结果

enter image description here

那么我该如何解决这个问题?

编辑:这是我的Paintcode文件https://www.dropbox.com/s/o0yl27fax0sn8ib/MenuBall.pcvd?dl=0

1 个答案:

答案 0 :(得分:1)

如果你还没有做过,你需要在你的形状周围画一个框架。然后,您需要指定调整大小时形状的行为方式。你可以从这里开始:https://www.paintcodeapp.com/documentation/frames#Frames