зеркало из https://github.com/xamarin/ios-samples.git
Removing storyboard from info.plist
This commit is contained in:
Родитель
8c1d3235ea
Коммит
a6b7c817a7
|
@ -12,21 +12,18 @@ namespace ManualStoryboard
|
|||
[Register ("AppDelegate")]
|
||||
public partial class AppDelegate : UIApplicationDelegate
|
||||
{
|
||||
// class-level declarations
|
||||
public override UIWindow Window {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
UIWindow window;
|
||||
public static UIStoryboard Storyboard = UIStoryboard.FromName ("MainStoryboard", null);
|
||||
public static UIViewController initialViewController;
|
||||
|
||||
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
|
||||
{
|
||||
window = new UIWindow (UIScreen.MainScreen.Bounds);
|
||||
|
||||
initialViewController = Storyboard.InstantiateInitialViewController () as UIViewController;
|
||||
|
||||
Window.RootViewController = initialViewController;
|
||||
Window.MakeKeyAndVisible ();
|
||||
window.RootViewController = initialViewController;
|
||||
window.MakeKeyAndVisible ();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
|
@ -18,8 +18,6 @@
|
|||
<array>
|
||||
<integer>1</integer>
|
||||
</array>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>MainStoryboard</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
|
|
Загрузка…
Ссылка в новой задаче