Skip to content

mihaelamj/MMJShapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

MMJShapes - Playing with UIBezierPath

Shapes

Drag the included UIBezierPath_MMJBezierPathShapes.h, UIBezierPath_MMJBezierPathShapes.m, MMJDrawingView.h, MMJDrawingView.m and MMJShapeTypes.h files into your project.

MMJDrawingView is a custom UIView with properties:

  • shapeType
  • shapeFill
  • color
  • frameColor
  • frameSize

ShapeType

  • SRect
  • SRoundRect
  • SDiamond
  • SPolygon
  • STriangle
  • SHeart
  • SClover
  • SSpades
  • SOval
  • SStar

ShapeFill

  • FFull,
  • FOpen,
  • FStriped

Using

  • add UIView to your storyboard/xib, or create in code
  • put MMJDrawingView as a (super)class.

Code in your ViewController may look like this:

  self.drawingView.shapeType = SStar;
  self.drawingView.frameSize = 5;
  self.drawingView.shapeFill = FStriped;

![Clicky](Real Time Web Analytics Clicky)

About

Testing UIBezierPath

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published