私はUIProgressViewを実装したいと考えています。これは8秒で0から100まで読み込みますが、それはうまく動作します。Xamarin iOS ProgressViewの変更がありません
ここは私のコードです。 ProgressViewは正しく機能しますが、それを自分で更新します。私の欠点は何ですか?
public override void ViewDidAppear(bool animated)
{
base.ViewDidAppear(animated);
Timer = NSTimer.CreateRepeatingScheduledTimer(TimeSpan.FromSeconds(15.0), delegate
{
DismissViewController(true, null);
});
UIView.Animate(8,() => {
progressView.SetProgress(1.0f, true);
});
}
あなたが 'progressView.SetProgress'行にブレークポイントを設定すると、あなたの' UIView.Animate'コードは正しいですか? – SushiHangover