problem with XIB, just new up buttons for now
This commit is contained in:
ConceptDev 2012-03-07 09:54:27 +11:00
Родитель 734ce394ed
Коммит b703fd3959
2 изменённых файлов: 23 добавлений и 3 удалений

Просмотреть файл

@ -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