私が作成した関数について質問があります。コンソール出力に時間間隔を表示したいと思います。
-(void)MyTimeInterval:(id)sender
{
NSDate *then = [NSDate date];
NSDate *now = [NSDate date];
NSTimeInterval interval = [now timeIntervalSinceDate:then];
NSLog(@"let me see the timeinterval between now and then %d", interval);
}
コンソール出力の間隔を確認するために何を使用すればよいか、誰にもわかりますか。それは%dではありません...私は自分の関数で何か間違ったことをしているとは思わない(もちろん間違っている可能性があります)ので、それは%dであるに違いないと推測しています。