Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 64 lines (46 sloc) 1.773 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
//
// SSLineView.h
// SSToolkit
//
// Created by Sam Soffes on 4/12/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//

/**
Don't under estimate this class. It draws lines, but they are awesome.
The recommended height is `2.0` points if you are using the inset and `1.0` if you are not.
The inset is drawn under the line if `insetColor` is not `nil`.
*/
@interface SSLineView : UIView

///--------------------
/// @name Drawing Lines
///--------------------

/**
The primary color of the line.
The default is `[UIColor grayColor]`.
*/
@property (nonatomic, strong) UIColor *lineColor;

/**
The color of the line inset.
The default is 50% opaque white.
*/
@property (nonatomic, strong) UIColor *insetColor;


///---------------------
/// @name Drawing Dashes
///---------------------

/**
A float that specifies how far into the dash pattern the line starts, in points.
For example, passing a value of 3 means the line is drawn with the dash pattern starting at 3 points from its
beginning. Passing a value of 0 draws a line starting with the beginning of a dash pattern.
The default is `0.0`.
*/
@property (nonatomic, assign) CGFloat dashPhase;

/**
An array of values that specify the lengths of the painted segments and unpainted segments, respectively, of the
dash pattern—or `nil` for no dash pattern.
For example, passing an array with the values [2,3] sets a dash pattern that alternates between a 2 point long painted
segment and a 3 point long unpainted segment. Passing the values [1,3,4,2] sets the pattern to a 1 point painted
segment, a 3 point unpainted segment, a 4 oiunt painted segment, and a 2 point unpainted segment.
The default is `nil`.
*/
@property (nonatomic, copy) NSArray *dashLengths;

@end
Something went wrong with that request. Please try again.