タイマー動いた。view didloadにNStimerおいてセマフォによって処理でおk
- (IBAction)start:(id)sender{
if (countstatus ==1){
countstatus =0;}
else {
countstatus =1;
}
}
- (void)count:(id)sender {
if (countstatus ==1){
hyouji= hyouji+0.1;
if (countstatus ==1){
countstatus =0;}
else {
countstatus =1;
}
}
if (countstatus ==1){
hyouji= hyouji+0.1;