Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

반응형

        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()

    }

반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기