Skip to content

Instantly share code, notes, and snippets.

@bomberstudios
Created February 17, 2015 10:03
Show Gist options
  • Save bomberstudios/ba7219261e8593cd3476 to your computer and use it in GitHub Desktop.
Save bomberstudios/ba7219261e8593cd3476 to your computer and use it in GitHub Desktop.
addLayerOfType
frame = NSMakeRect(0, 0, 100, 100);
layerToAdd = [[MSRectangleShape alloc] initWithFrame:frame] // or MSTextLayer, or MSBitmapLayer, or…
[group addLayers:[layerToAdd]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment