Skip to content

Commit

Permalink
fixed the cell bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bereket6725 committed Sep 1, 2015
1 parent 14d3650 commit 1e4a024
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Time/TimerStopwatch/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
<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">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
Expand Down
9 changes: 8 additions & 1 deletion Time/TimerStopwatch/StopWatchViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ @implementation StopWatchViewController

-(void)viewDidLoad{
[super viewDidLoad];
self.lapsTableView.delegate = self;
self.lapsTableView.dataSource=self;
self.heldLapsForTableView = [[NSMutableArray alloc] init];
}

Expand Down Expand Up @@ -65,8 +67,13 @@ - (IBAction)buttonTapped:(id)sender {
}

else if (sender == self.addLapToTableView){

[self.heldLapsForTableView addObject:self.timeLabel.text];
[self.lapsTableView reloadData];


[self.lapsTableView reloadData];

NSLog(@"added lap");
}
}
- (void)timerFired:(NSTimer*)timer {
Expand Down

0 comments on commit 1e4a024

Please sign in to comment.