Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Adjust FinishedLaunching() structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankelly5 committed Mar 31, 2015
1 parent dec0fe3 commit fc8fc6a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 33 deletions.
29 changes: 29 additions & 0 deletions QuartzSample/AppDelegate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using UIKit;
using Foundation;

namespace QuartzSample
{
// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class AppDelegate : UIApplicationDelegate
{
// This method is invoked when the application has loaded its UI and its ready to run
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
// If you have defined a view, add it here:
// window.AddSubview (navigationController.View);

navigationController.NavigationBar.BarStyle = UIBarStyle.Default;
window.AddSubview (navigationController.View);

window.MakeKeyAndVisible ();

return true;
}

// This method is required in iPhoneOS 3.0
public override void OnActivated (UIApplication application)
{
}
}
}

27 changes: 0 additions & 27 deletions QuartzSample/Main.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;

namespace QuartzSample
Expand All @@ -13,28 +9,5 @@ static void Main (string[] args)
UIApplication.Main (args);
}
}

// The name AppDelegate is referenced in the MainWindow.xib file.
public partial class AppDelegate : UIApplicationDelegate
{
// This method is invoked when the application has loaded its UI and its ready to run
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
// If you have defined a view, add it here:
// window.AddSubview (navigationController.View);

navigationController.NavigationBar.BarStyle = UIBarStyle.Default;
window.AddSubview (navigationController.View);

window.MakeKeyAndVisible ();

return true;
}

// This method is required in iPhoneOS 3.0
public override void OnActivated (UIApplication application)
{
}
}
}

7 changes: 1 addition & 6 deletions QuartzSample/QuartzSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
<MtouchArch>i386</MtouchArch>
<MtouchI18n>
</MtouchI18n>
<MtouchExtraArgs>
</MtouchExtraArgs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>none</DebugType>
Expand All @@ -42,8 +40,6 @@
<MtouchLink>None</MtouchLink>
<ConsolePause>False</ConsolePause>
<MtouchArch>i386</MtouchArch>
<MtouchExtraArgs>
</MtouchExtraArgs>
<MtouchI18n>
</MtouchI18n>
</PropertyGroup>
Expand Down Expand Up @@ -74,8 +70,6 @@
<ConsolePause>False</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchArch>ARMv7, ARM64</MtouchArch>
<MtouchExtraArgs>
</MtouchExtraArgs>
<MtouchI18n>
</MtouchI18n>
</PropertyGroup>
Expand Down Expand Up @@ -111,6 +105,7 @@
<Compile Include="QuartzBlendingViewController.xib.designer.cs">
<DependentUpon>QuartzBlendingViewController.xib</DependentUpon>
</Compile>
<Compile Include="AppDelegate.cs" />
</ItemGroup>
<ItemGroup>
<InterfaceDefinition Include="MainWindow.xib" />
Expand Down

0 comments on commit fc8fc6a

Please sign in to comment.