반응형
GV.s.plzWait(view)
DispatchQueue.main.asyncAfter(deadline: .now() + 1, execute: {
GV.s.indicator.stopAnimating()
self.pullToRefresh(refreshControl: refreshControl, true)
})
let indicator: UIActivityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorView.Style.gray)
func plzWait(_ view : UIView) {
indicator.frame = CGRect(x: 0.0, y: 0.0, width: 40.0, height: 40.0)
indicator.center = view.center
view.addSubview(indicator)
indicator.bringSubview(toFront: view)
UIApplication.shared.isNetworkActivityIndicatorVisible = true
indicator.startAnimating()
}
반응형
'3D world > Unreal Engine Games Review' 카테고리의 다른 글
전역 바이너리 세마포어, 전역 queue 설정 (0) | 2019.01.19 |
---|---|
아이폰별 화면 해상도 (0) | 2019.01.18 |
iOS 디버깅 방법 (0) | 2019.01.16 |
UISegmentedControl (0) | 2019.01.16 |
dictionary 에 쉽게 자료 append 하기 (0) | 2019.01.16 |
최근댓글