Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 2db0f6c

Browse files
committed
[iOS] Removed title
1 parent c13e83b commit 2db0f6c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Xamarin.Forms.Platform.iOS/PopupWrapper.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using CoreGraphics;
22
using UIKit;
3+
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
34

45
namespace Xamarin.Forms.Platform.iOS
56
{
@@ -46,8 +47,6 @@ public static UIViewController Wrap(Popup<T> popup)
4647

4748
void InitializeViewController(Popup<T> popup)
4849
{
49-
Title = popup.Title;
50-
5150
View.BackgroundColor = UIColor.White;
5251
View.AddSubview(_renderer.ViewController.View);
5352
AddChildViewController(_renderer.ViewController);
@@ -74,5 +73,13 @@ public override void ViewWillAppear(bool animated)
7473
View.BackgroundColor = UIColor.White;
7574
base.ViewWillAppear(animated);
7675
}
76+
77+
private class PopoverDelegate : UIPopoverPresentationControllerDelegate
78+
{
79+
public override UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController forPresentationController)
80+
{
81+
return UIModalPresentationStyle.None;
82+
}
83+
}
7784
}
7885
}

0 commit comments

Comments
 (0)