Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (44 sloc) 1.628 kb
8a6043f @steipete initial commit
authored
1 //
2 // ButtonGradientView.h
3 // Custom Alert View
4 //
5 // Created by jeff on 5/17/10.
6 // Copyright 2010 Peter Steinberger. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import <QuartzCore/QuartzCore.h>
11
12 @interface GradientButton : UIButton
13 {
14 // These two arrays define the gradient that will be used
15 // when the button is in UIControlStateNormal
16 NSArray *normalGradientColors; // Colors
17 NSArray *normalGradientLocations; // Relative locations
18
19 // These two arrays define the gradient that will be used
20 // when the button is in UIControlStateHighlighted
21 NSArray *highlightGradientColors; // Colors
22 NSArray *highlightGradientLocations; // Relative locations
23
24 // This defines the corner radius of the button
25 CGFloat cornerRadius;
26
27 // This defines the size and color of the stroke
28 CGFloat strokeWeight;
29 UIColor *strokeColor;
30
31 @private
32 CGGradientRef normalGradient;
33 CGGradientRef highlightGradient;
34 }
35 @property (nonatomic, retain) NSArray *normalGradientColors;
36 @property (nonatomic, retain) NSArray *normalGradientLocations;
37 @property (nonatomic, retain) NSArray *highlightGradientColors;
38 @property (nonatomic, retain) NSArray *highlightGradientLocations;
39 @property (nonatomic) CGFloat cornerRadius;
40 @property (nonatomic) CGFloat strokeWeight;
41 @property (nonatomic, retain) UIColor *strokeColor;
42 - (void)useAlertStyle;
43 - (void)useRedDeleteStyle;
44 - (void)useWhiteStyle;
45 - (void)useBlackStyle;
46 - (void)useWhiteActionSheetStyle;
47 - (void)useBlackActionSheetStyle;
48 - (void)useSimpleOrangeStyle;
49 - (void)useGreenConfirmStyle;
50
51 @end
Something went wrong with that request. Please try again.