Beispiel #1
0
        public override void DidRotate(UIInterfaceOrientation fromInterfaceOrientation)
        {
            if (AppGlobal.CollectionsViewInListMode)
            {
                _listView.DidRotate(fromInterfaceOrientation);

                if (!_queueFraming)
                {
                    // Completely rebuild the gallery view behind the scenes so it doesn't have to rotate...
                    if (_galleryView != null)
                    {
                        _galleryView.View.RemoveFromSuperview();
                        _galleryView.Dispose();
                        _galleryView = null;
                    }
                    _galleryView  = new SeriesGalleryViewController(this, _listView);
                    _queueFraming = true;
                }
            }
            else
            {
                _galleryView.DidRotate(fromInterfaceOrientation);
            }
        }