brenjt
brenjt

Reputation: 16297

objective-c equivalent for AS3's Shape class

I have been banging my head on this for hours. What would be the equivalent of AS3's Shape class in Objective C? Is it a UIView?

I am trying to get a bitmapfill with custom paths out of an image. In flash it is as simple as:

var mesh:Shape = new Shape();
mesh.graphics.beginBitmapFill(new MeshBitmapData(), null, true, false);
mesh.graphics.drawRect(0, 0, 400, 400);
mesh.graphics.endFill();

Is there an equivalent in Objective C? Or am I missing something all together?

Upvotes: 3

Views: 70

Answers (1)

jfuellert
jfuellert

Reputation: 570

You can take a look at this and this. It uses basic drawing principles similar to AS3, but no automatic shape creations as far as I know. You may want to look around for libraries though if that is the case.

EDIT

I found this tutorial which may help you out.

Upvotes: 1

Related Questions