Skip to content
A view design to be filled with holes ...
Objective-C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
JMHoledView.xcodeproj
JMHoledView
JMHoledViewTests
screenshots
JMHoledView.podspec
LICENSE
README.md

README.md

My other works

[http://leverdeterre.github.io] (http://leverdeterre.github.io)

JMHoledView

A view design to be filled with holes ...

HoleView, holes methods


- (NSInteger)addHoleCircleCenteredOnPosition:(CGPoint)centerPoint diameter:(CGFloat)diamter;
- (NSInteger)addHoleRectOnRect:(CGRect)rect;
- (NSInteger)addHoleRoundedRectOnRect:(CGRect)rect cornerRadius:(CGFloat)cornerRadius;
- (NSInteger)addHCustomView:(UIView *)customView onRect:(CGRect)rect;

- (void)addHoleCircleCenteredOnPosition:(CGPoint)centerPoint diameter:(CGFloat)diameter withText:(NSString *)text onPosition:(JMHolePosition)position margin:(CGFloat)margin;
- (void)addHoleRectOnRect:(CGRect)rect withText:(NSString *)text onPosition:(JMHolePosition)position margin:(CGFloat) margin;
- (void)addHoleRoundedRectOnRect:(CGRect)rect cornerRadius:(CGFloat)cornerRadius text:(NSString *)text onPosition:(JMHolePosition)position withMargin:(CGFloat)margin;
- (void)addHoleRoundedRectOnRect:(CGRect)rect cornerRadius:(CGFloat)cornerRadius attributedText:(NSAttributedString *)text onPosition:(JMHolePosition)position margin:(CGFloat)margin;

HoleView Delegation : JMHoledViewDelegate

This method will be called if you configure a holeViewDelegate. The index is equal to NSNotFound if user touch dimingView.

- (void)holedView:(JMHoledView *)holedView didSelectHoleAtIndex:(NSUInteger)index;

Image

You can’t perform that action at this time.