Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daltonclaybrook/slantydashedview
A view requested by a redditor
https://github.com/daltonclaybrook/slantydashedview
Last synced: 3 months ago
JSON representation
A view requested by a redditor
- Host: GitHub
- URL: https://github.com/daltonclaybrook/slantydashedview
- Owner: daltonclaybrook
- License: mit
- Created: 2014-08-10T19:44:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-11T00:39:56.000Z (over 10 years ago)
- Last Synced: 2023-04-15T09:17:16.047Z (over 1 year ago)
- Language: Objective-C
- Size: 336 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SlantyDashedView
================
A view requested by a redditor![image](https://raw.githubusercontent.com/daltonclaybrook/SlantyDashedView/master/examples.png)
##Example Usage
Initialize the view from a `XIB` / `Storyboard`, or programmatically using any of the initializer methods on `UIView`
SlantyDashedView *dashedView = [[SlantyDashedView alloc] initWithFrame:CGRectMake(0, 0, 200, 12)];
Choose colors:
dashedView.backgroundColor = [UIColor redColor];
dashedView.dashColor = [UIColor greenColor];
Specify width and spacing values for the dashes:dashedView.dashWidth = 8.0f;
dashedView.dashSpacing = 12.0f;
Specify the horizontal translation of the dashes:dashedView.horizontalTranslation = 6.0f;
Animate the dashes:dashedView.animationDirection = SlantyDashedViewAnimationDirectionRightToLeft;
// animation speed is specified in points per second
[dashedView startAnimatingWithSpeed:40.0f];
// after some time has elapsed
[dashedView stopAnimating];