зеркало из https://github.com/xamarin/ios-samples.git
62 строки
1.3 KiB
C#
62 строки
1.3 KiB
C#
using System;
|
|
using System.Drawing;
|
|
|
|
using Foundation;
|
|
using UIKit;
|
|
|
|
namespace WorkingWithImages
|
|
{
|
|
public partial class SecondViewController : UIViewController
|
|
{
|
|
static bool UserInterfaceIdiomIsPhone {
|
|
get { return UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone; }
|
|
}
|
|
|
|
public SecondViewController (IntPtr handle) : base (handle)
|
|
{
|
|
this.Title = NSBundle.MainBundle.LocalizedString ("Second", "Second");
|
|
this.TabBarItem.Image = UIImage.FromBundle ("second");
|
|
}
|
|
|
|
public override void DidReceiveMemoryWarning ()
|
|
{
|
|
// Releases the view if it doesn't have a superview.
|
|
base.DidReceiveMemoryWarning ();
|
|
|
|
// Release any cached data, images, etc that aren't in use.
|
|
}
|
|
|
|
#region View lifecycle
|
|
|
|
public override void ViewDidLoad ()
|
|
{
|
|
base.ViewDidLoad ();
|
|
|
|
// Perform any additional setup after loading the view, typically from a nib.
|
|
}
|
|
|
|
public override void ViewWillAppear (bool animated)
|
|
{
|
|
base.ViewWillAppear (animated);
|
|
}
|
|
|
|
public override void ViewDidAppear (bool animated)
|
|
{
|
|
base.ViewDidAppear (animated);
|
|
}
|
|
|
|
public override void ViewWillDisappear (bool animated)
|
|
{
|
|
base.ViewWillDisappear (animated);
|
|
}
|
|
|
|
public override void ViewDidDisappear (bool animated)
|
|
{
|
|
base.ViewDidDisappear (animated);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|