This repository has been archived by the owner on Sep 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Unified version of API and sample. Test is not yet ported.
- Loading branch information
1 parent
d4fceb8
commit a2508b8
Showing
35 changed files
with
1,745 additions
and
5,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
#if __UNIFIED__ | ||
using Foundation; | ||
using UIKit; | ||
#else | ||
using MonoTouch.Foundation; | ||
using MonoTouch.UIKit; | ||
#endif | ||
|
||
namespace OsmSharp.iOS.UI.Sample | ||
{ | ||
[Register("AppDelegate")] | ||
public partial class AppDelegate : UIApplicationDelegate | ||
{ | ||
UIWindow window; | ||
SampleViewController viewController; | ||
[Register("AppDelegate")] | ||
public partial class AppDelegate : UIApplicationDelegate | ||
{ | ||
UIWindow window; | ||
SampleViewController viewController; | ||
|
||
public override bool FinishedLaunching(UIApplication app, NSDictionary options) | ||
{ | ||
window = new UIWindow(UIScreen.MainScreen.Bounds); | ||
public override bool FinishedLaunching(UIApplication app, NSDictionary options) | ||
{ | ||
window = new UIWindow(UIScreen.MainScreen.Bounds); | ||
|
||
viewController = new SampleViewController(); | ||
window.RootViewController = viewController; | ||
viewController = new SampleViewController(); | ||
window.RootViewController = viewController; | ||
|
||
window.MakeKeyAndVisible(); | ||
window.MakeKeyAndVisible(); | ||
|
||
return true; | ||
} | ||
} | ||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.