private void Unregister()
 {
     if (_albumsViewController != null)
     {
         _albumsViewController.Dispose();
         _albumsViewController = null;
     }
 }
Beispiel #2
0
 private void Unregister()
 {
     Debug.WriteLine($"{GetType().Name}: Unregister");
     if (_albumsViewController != null)
     {
         _albumsViewController.Dispose();
         _albumsViewController = null;
     }
 }
        private void SetupNavigationController()
        {
            if (_albumsViewController == null)
            {
                _albumsViewController = new GMAlbumsViewController();
            }
            _navigationController          = new UINavigationController(_albumsViewController);
            _navigationController.Delegate = new GMNavigationControllerDelegate();

            _navigationController.NavigationBar.Translucent = true;

            _navigationController.View.Frame = View.Frame;
            _navigationController.WillMoveToParentViewController(this);
            View.AddSubview(_navigationController.View);
            AddChildViewController(_navigationController);
            _navigationController.DidMoveToParentViewController(this);
        }
Beispiel #4
0
        private void SetupNavigationController()
        {
            if (_albumsViewController == null)
            {
                _albumsViewController = new GMAlbumsViewController();
            }
            _navigationController          = new UINavigationController(_albumsViewController);
            _navigationController.Delegate = new GMNavigationControllerDelegate();

            _navigationController.NavigationBar.Translucent = true;
            _navigationController.NavigationBar.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
            _navigationController.NavigationBar.ShadowImage = new UIImage();

            _navigationController.View.Frame = View.Frame;
            _navigationController.WillMoveToParentViewController(this);
            View.AddSubview(_navigationController.View);
            AddChildViewController(_navigationController);
            _navigationController.DidMoveToParentViewController(this);
        }
        private void SetupNavigationController()
        {
            if (_albumsViewController == null)
            {
                _albumsViewController = new GMAlbumsViewController();
            }
            _albumsViewController._picker = this;
            _albumsViewController.Test();

            var _gridViewController = new GMGridViewController(this);

            _gridViewController.AssetsFetchResults = _albumsViewController._collectionsFetchResultsAssets[0][0];

            _navigationController          = new UINavigationController(_gridViewController);
            _navigationController.Delegate = new GMNavigationControllerDelegate();

            _navigationController.NavigationBar.Translucent = true;

            _navigationController.View.Frame = View.Frame;
            _navigationController.WillMoveToParentViewController(this);
            View.AddSubview(_navigationController.View);
            AddChildViewController(_navigationController);
            _navigationController.DidMoveToParentViewController(this);
        }
Beispiel #6
0
 public GMAlbumsViewTableViewSource(GMAlbumsViewController parent)
 {
     _parent = parent;
 }
		private void Unregister ()
		{
			if (_albumsViewController != null) {
				_albumsViewController.Dispose ();
				_albumsViewController = null;
			}
		}
		private void SetupNavigationController()
		{
			if (_albumsViewController == null) {
				_albumsViewController = new GMAlbumsViewController ();
			}
			_navigationController = new UINavigationController (_albumsViewController);
			_navigationController.Delegate = new GMNavigationControllerDelegate ();

			_navigationController.NavigationBar.Translucent = true;

			_navigationController.View.Frame = View.Frame;
			_navigationController.WillMoveToParentViewController (this);
			View.AddSubview (_navigationController.View);
			AddChildViewController (_navigationController);
			_navigationController.DidMoveToParentViewController (this);
		}
			public GMAlbumsViewTableViewSource(GMAlbumsViewController parent) {
				_parent = parent;
			}