зеркало из https://github.com/xamarin/ios-samples.git
bugfix Popover sample
problem with XIB, just new up buttons for now
This commit is contained in:
Родитель
734ce394ed
Коммит
b703fd3959
|
@ -73,12 +73,24 @@ namespace Popovers
|
|||
}
|
||||
|
||||
public DetailViewController (IntPtr handle) : base (handle)
|
||||
{
|
||||
{
|
||||
// lost connection to DetailView.xib, create buttons manually for now
|
||||
Button1 = new UIButton();
|
||||
Button2 = new UIButton();
|
||||
Button3 = new UIButton();
|
||||
Button4 = new UIButton();
|
||||
Button5 = new UIButton();
|
||||
}
|
||||
|
||||
//loads the DetailViewController.xib file and connects it to this object
|
||||
public DetailViewController () : base ("DetailViewController", null)
|
||||
{
|
||||
{
|
||||
// lost connection to DetailView.xib, create buttons manually for now
|
||||
Button1 = new UIButton();
|
||||
Button2 = new UIButton();
|
||||
Button3 = new UIButton();
|
||||
Button4 = new UIButton();
|
||||
Button5 = new UIButton();
|
||||
}
|
||||
|
||||
public override void ViewDidLoad ()
|
||||
|
@ -93,7 +105,7 @@ namespace Popovers
|
|||
BarButtonItemPopover = new UIPopoverController (content);
|
||||
BarButtonItemPopover.PopoverContentSize = new SizeF (320, 320);
|
||||
BarButtonItemPopover.DidDismiss += delegate { LastTappedButton = null; };
|
||||
|
||||
|
||||
}
|
||||
|
||||
[Action ("showPopover:")]
|
||||
|
|
|
@ -8,6 +8,8 @@ in order to show proper handling of UIPopoverControllers being presented
|
|||
from UIBarButtonItems. Additional handling ensures that multiple
|
||||
UIPopoverControllers are never presented at the same time.
|
||||
|
||||
Popovers are only supported on the iPad.
|
||||
|
||||
Build Requirements
|
||||
------------------
|
||||
|
||||
|
@ -39,3 +41,9 @@ Copyright
|
|||
---------
|
||||
|
||||
Copyright (C) 2010 Apple Inc. All rights reserved.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
alexrp,
|
||||
Craig Dunn
|
Загрузка…
Ссылка в новой задаче