Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバー側から約10秒の遅延があります。サーバーでの遅延を示すalertViewを表示したいと思います。どうやってするの?
遅延が 10 秒に固定されている場合。次に、10 秒間待機するインジケーターを表示するカスタム AlertView を配置し、10 秒後に AlertView を閉じることができます。NSTimer を使用して、10 秒の時間間隔を管理できます。
リクエストが現在進行中であることを示すアクティビティ インジケータを表示し、リクエストが完了した場合はアクティビティ インジケータを削除することもできます。