uchicago-mobi / MPCS51030-2017-Winter-Forum

7 stars 0 forks source link

Indicator #123

Closed alexliu0809 closed 7 years ago

alexliu0809 commented 7 years ago

How can we display network indicator in masterview? How can we add UIActivityIndicator to master view?

susanstevens commented 7 years ago

The network activity indicator is the small spinner you see in the status bar at the top of your device or simulator (in line with the time). Try just setting isNetworkActivityIndicatorVisible = true and removing or commenting out the line where you set it to be false. You should see it spinning.

alexliu0809 commented 7 years ago

Thx. I already set NetworkActivityIndicatorVisible in masterview. But I still wonder do we need to add UIActivityIndicator (which is in the center of the screen) to masterview?

susanstevens commented 7 years ago

The UIActivityIndicator only needs to appear when the web view is loading content. It should be centered on the detail view. The network activity indicator should appear whenever there is network activity (on master or detail).

alexliu0809 commented 7 years ago

Thx.