UIDynamics Helpers

UIDynamics Helpers

Released 4 years ago , Last update 4 years ago

This set of classes will save you hours of time when working with Collision Systems, allowing you to set up and test complicated collision boundaries in no time flat. This package contains MFLAlphaCollision and MFLBoundaryPreview, a class to create complicated boundary systems and a class to debug complicated boundary systems. Also contained here are examples of many different forms of UIDynamics for you to learn from.

UIDynamics-Helpers

This package is filled with helping code for UIDynamics. All of the UIDynamics Helpers are housed in the top level "MFLDynamicsHelpers" folder, and there are use examples throughout. This set of classes will save you hours of time when working with Collision Systems, allowing you to set up and test complicated collision boundaries in no time flat.

MFLAlphaBoundary will allow you to create complicated boundaries from a masking image, by tracing your image programmatically to find the non-transparent edges. It can even trace an entire UIView and turn it into a boundary system, if for example, you wanted to have objects fall and interact with your UI.

MFLBoundaryPreview is a UIView subclass that will trace all of your boundaries on screen, allowing you to easily debug your boundary setup.

MFLDynamicsHelpers require iOS7 and above. The .png assets included are just for demonstration purposes and buying this package conveys no license to use them commercially.

Pricing

14 day 14-day money-back guarantee

$19.99

Application License

  • Perpetual license

  • 1 application

  • Can distribute binary products only

  • Commercial use

  • 6 months support

Setup and Example Uses

MFLAlphaCollision - Image To Boundary - Alpha Only Collisions

This class will help you create a boundary behavior for any arbitrary image. It will trace any non zero alpha pixels in an image, and then construct a UIBezierPath from the result to use as a boundary.

     [MFLAlphaCollision addBoundaryToBehavior:self.collisionBehavior
                                     withView:self.boundaryImageView
                                forIdentifier:@"someIdentifier"];

OR

     [MFLAlphaCollision addBoundaryToBehavior:self.collisionBehavior
                                     withView:self.complicatedView
                                forIdentifier:@"someIdentifier"];

MFLBoundaryPreview - Trace Boundaries

This class will allow you to trace all on screen boundaries simply and easily to make it much easier to test your path drawing.

To begin tracing all of your boundaries, change the class of your UIView to MFLBoundaryPreview and set your view's MFLBoundaryPreviewDelegate to your UIViewController, ensuring it has a property named collisionBehavior.

2 licenses, starting from From » $19.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
No comments have been posted yet.