私は助けが必要ですUIAlertView:-)。現在UIAlertView、ユーザーがこの機能を使用してデバイスを振ると表示され-(void)motionEnded:ます。を使用して0.5秒後にアラートビューを非表示にしたいので、アラートビューNSTimerの下部にあるボタンを閉じる必要はありません。ボタンなしで UIAlertView を作成する方法はありますか? 【下の画像の矢印のスペースを消す方法は?】
コードは次のとおりです。
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
resetAlert = [[UIAlertView alloc] initWithTitle:@"Reset!"
message:nil
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:nil, nil];
[resetAlert show];
alertHideTimer = [NSTimer scheduledTimerWithTimeInterval:10.5 target:self selector:@selector(dismissWithClickedButtonIndex:animated:) userInfo:nil repeats:NO];
self.label.text = @"0";
numero = 0;
[self.label2 setHidden:YES];
}


