@interface MyViewController () {
NSTimer *timer;
int seconds;
...
}
@property (weak, nonatomic) IBOutlet UILabel *timerLabel;
@end
...
- (void)viewDidLoad
{
[super viewDidLoad];
timer = [NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(updateTimer:) userInfo:nil repeats:YES];
seconds = 0;
}
- (void)updateTimer:(NSTimer *)theTimer {
[functions playSound:[NSString stringWithFormat:@"%@",seconds] ofType:@"aac"];
seconds++;
}
<header id="header">
<div class="row">
<div class="col-xs-12">
...
</div>
</div>
</header>
#header {
background: url(../img/bg.jpg) 0 0 no-repeat fixed;
height: 100%;
overflow: hidden;
color: #FFFFFF
}
.row{
background: rgba(39,62,84,0.82);
overflow: hidden;
height: 100%;
z-index: 2;
}