File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 7706" systemVersion =" 14E46 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" Naf-OP-4Rq" >
2
+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 7706" systemVersion =" 14B25 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" Naf-OP-4Rq" >
3
3
<dependencies >
4
4
<plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 7703" />
5
5
<capability name =" Constraints with non-1.0 multipliers" minToolsVersion =" 5.1" />
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ @implementation StopWatchViewController
16
16
17
17
-(void )viewDidLoad {
18
18
[super viewDidLoad ];
19
+ self.lapsTableView .delegate = self;
20
+ self.lapsTableView .dataSource =self;
19
21
self.heldLapsForTableView = [[NSMutableArray alloc ] init ];
20
22
}
21
23
@@ -65,8 +67,13 @@ - (IBAction)buttonTapped:(id)sender {
65
67
}
66
68
67
69
else if (sender == self.addLapToTableView ){
70
+
68
71
[self .heldLapsForTableView addObject: self .timeLabel.text];
69
- [self .lapsTableView reloadData ];
72
+
73
+
74
+ [self .lapsTableView reloadData ];
75
+
76
+ NSLog (@" added lap" );
70
77
}
71
78
}
72
79
- (void )timerFired : (NSTimer *)timer {
You can’t perform that action at this time.
0 commit comments