// public override void ViewDidLoad () // { // base.ViewDidLoad (); // // //InitViews(); // } /// <summary> /// Inits the views. Initialize and load the content view /// </summary> void InitViews() { ArrowDirection = FPPopoverArrowDirection.FPPopoverArrowDirectionAny; _viewController.View.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; _viewController.AddObserver(this, new NSString("title"), NSKeyValueObservingOptions.New, System.IntPtr.Zero); _touchView = new FPTouchView(View.Bounds); ContentSize = new SizeF(200, 300); //default size (200x300 originalmente) _contentView = new FPPopoverView(new RectangleF(0, 0, ContentSize.Width, ContentSize.Height)); _contentView.ArrowDirection = FPPopoverArrowDirection.FPPopoverArrowDirectionUp; _contentView.Title = _viewController.Title; _contentView.ClipsToBounds = false; _contentView.AddContentView(_viewController.View); _touchView.BackgroundColor = UIColor.Clear; _touchView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; _touchView.ClipsToBounds = false; _touchView.SetTouchedOutsideBlock(delegate { DismissPopoverAnimated(true); } ); _touchView.AddSubview(_contentView); View.UserInteractionEnabled = true; View.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; View.ClipsToBounds = false; View.AddSubview(_touchView); //_parentView.AddSubview (View); SetupView(); AddObservers(); }