-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoalView.h
More file actions
executable file
·44 lines (35 loc) · 1.06 KB
/
Copy pathGoalView.h
File metadata and controls
executable file
·44 lines (35 loc) · 1.06 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
//
// GoalView.h
// Stepr
//
// Created by Philipp Hackbarth on 31.10.13.
// Copyright (c) 2013 Hackbarth GFX. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@interface GoalView : UIView
@property (nonatomic, strong) NSNumber* reachedInPercent;
@property (nonatomic) NSUInteger stepCount;
@property (nonatomic) float strideLength;
@property (nonatomic, strong) CAShapeLayer* circle;
@property (nonatomic, strong) IBOutlet UILabel* stepsText;
@property (nonatomic, strong) IBOutlet UILabel* goalText;
@property (nonatomic, strong) IBOutlet UILabel* percentText;
@property (nonatomic, strong) IBOutlet UILabel* caloriesText;
@property (nonatomic, strong) IBOutlet UILabel* distanceText;
/**
* Animiert die Prozentanzeige
*/
- (void)Animate;
/**
* Setzt die Animation wieder auf den Ursprungszustand zurück
*/
- (void)ResetAnimation;
/**
* Setzt die Prozentanzeige auf einen bestimmten Wert
*
* @param reachedInPercent gewünschter Wert
*/
- (void)setReachedInPercent:(NSNumber*)reachedInPercent;
- (void) updateGoalText;
@end