Пример #1
0
 private void RemoveLoadView()
 {
     if (loadViewCtr != null)
     {
         loadViewCtr.View.RemoveFromSuperview();
         loadViewCtr.Dispose();
         loadViewCtr = null;
     }
 }
Пример #2
0
        private void RemoveLoadView()
        {
            NSRunLoop.Current.RunUntil(NSRunLoopMode.Default, NSDate.FromTimeIntervalSinceReferenceDate(5));

            if (loadViewCtr != null)
            {
                loadViewCtr.View.Layer.RemoveFromSuperLayer();
                loadViewCtr.Dispose();
                loadViewCtr = null;
            }
        }
Пример #3
0
        private void AddLoadView()
        {
            if (loadViewCtr == null)
            {
                var scrollframe = TocTableView.EnclosingScrollView.Frame;
                var location    = new CGPoint();
                location.X = (scrollframe.Width - 200) / 2;
                location.Y = (scrollframe.Height - 100) / 2;

                loadViewCtr = new LoadingViewController(location, LNRConstants.LOADING_INFO);
            }
            TocTableView.Superview.AddSubview(loadViewCtr.View);
        }
Пример #4
0
        private void AddLoadView()
        {
            if (loadViewCtr == null)
            {
                PublicationsCustomView.WantsLayer = true;
                var scrollframe = PublicationsCustomView.Frame;
                var location    = new CGPoint();
                location.X = (scrollframe.Width - 200) / 2;
                location.Y = (scrollframe.Height - 100) / 2;

                loadViewCtr = new LoadingViewController(location, LNRConstants.LOADING_INFO);
            }

            loadViewCtr.View.WantsLayer = true;
            PublicationsCustomView.Layer.AddSublayer(loadViewCtr.View.Layer);
        }
        public void AddLoadView()
        {
            if (loadViewCtr == null)
            {
                //var frame = View.Frame;
                var frame    = SearchTableView.EnclosingScrollView.Frame;
                var location = new CGPoint();
                location.X = (frame.Width - 200) / 2;
                location.Y = (frame.Height - 100) / 2;

                loadViewCtr = new LoadingViewController(location, LNRConstants.LOADING_SEARCH_INFO);
            }

            loadViewCtr.View.WantsLayer = true;
            View.WantsLayer             = true;
            View.Layer.AddSublayer(loadViewCtr.View.Layer);
        }