Update update view to be more iOS 6 like

Not completely finished yet
This commit is contained in:
Andreas Linde
2012-10-22 01:08:26 +02:00
parent 1eb68fece6
commit aee5c4adda
7 changed files with 94 additions and 138 deletions

View File

@@ -29,18 +29,14 @@
*/
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
// defines a button action set (data container)
@interface BITStoreButtonData : NSObject {
CGPoint _customPadding;
}
@interface BITStoreButtonData : NSObject
+ (id)dataWithLabel:(NSString*)aLabel colors:(NSArray*)aColors enabled:(BOOL)flag;
+ (id)dataWithLabel:(NSString*)aLabel enabled:(BOOL)flag;
@property (nonatomic, copy) NSString *label;
@property (nonatomic, retain) NSArray *colors;
@property (nonatomic, assign, getter=isEnabled) BOOL enabled;
@end
@@ -54,10 +50,7 @@
// Simulate the Paymeny-Button from the AppStore
// The interface is flexible, so there is now fixed order
@interface BITStoreButton : UIButton {
CAGradientLayer *_gradient;
CGPoint _customPadding;
}
@interface BITStoreButton : UIButton
- (id)initWithFrame:(CGRect)frame;
- (id)initWithPadding:(CGPoint)padding;
@@ -73,9 +66,4 @@
@property (nonatomic, assign) CGPoint customPadding;
- (void)alignToSuperview;
// helpers to mimic an AppStore button
+ (NSArray *)appStoreGreenColor;
+ (NSArray *)appStoreBlueColor;
+ (NSArray *)appStoreGrayColor;
@end