1

I created a vector shape with Paintcode an the I need to draw the image into a BarButtonItem; i know that i have to use myBarButtonItem.image = StyleKit.imageOfCanvas1(CGRectMake(0, 0, 30, 30)), but this is the result

enter image description here

So how can i do to solve this problem?

EDIT: here my Paintcode file https://www.dropbox.com/s/o0yl27fax0sn8ib/MenuBall.pcvd?dl=0

Fabio Cenni
  • 841
  • 3
  • 16
  • 30

1 Answers1

1

You need to draw a frame around your shape, if you already didn't do it. Then you need to specify how the shape behaves when resized. You can start here: https://www.paintcodeapp.com/documentation/frames#Frames

MirekE
  • 11,515
  • 5
  • 35
  • 28
  • Just added the frame, and set the resize behavior (please take a look to my paint code file, maybe I've made a mistake) – Fabio Cenni Aug 01 '16 at 14:58