Creating a “loading…” view using iPhone SDK

后端 未结 7 1736
情歌与酒
情歌与酒 2021-02-01 08:57

How to create that black/gray modal popup kind of view that many apps use, when some long pending operation is in progress?

Like when using location based services, load

7条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 09:20

    If you add a UIView as a subview of the main window it will cover the entire UI. Make it partially transparent and partially translucent and it will look like a popup.

    This example shows how to fade the Default.png splash screen, starting with that it's pretty straightforward to add a couple methods to your application delegate (that has a pointer to the main window) to present and dismiss the progress view.

提交回复
热议问题