Skip to content

Commit 5a038c0

Browse files
author
Sean Sparkman
committed
initial commit
0 parents  commit 5a038c0

15 files changed

+671
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.pidb
2+
*.userprefs
3+
*.swp
4+
*.DS_Store
5+
*.nib
6+
*.suo
7+
8+
packages/
9+
10+
*/bin/*
11+
*/obj/*
12+
*/*/bin/*
13+
*/*/obj/*
14+
*/*/*/bin/*
15+
*/*/*/obj/*

TabbedNav.sln

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TabbedNav", "TabbedNav\TabbedNav.csproj", "{D156DEA4-5A69-4BA7-899A-E015A30C8415}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|iPhoneSimulator = Debug|iPhoneSimulator
9+
Release|iPhone = Release|iPhone
10+
Release|iPhoneSimulator = Release|iPhoneSimulator
11+
Debug|iPhone = Debug|iPhone
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Debug|iPhone.ActiveCfg = Debug|iPhone
15+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Debug|iPhone.Build.0 = Debug|iPhone
16+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
17+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
18+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Release|iPhone.ActiveCfg = Release|iPhone
19+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Release|iPhone.Build.0 = Release|iPhone
20+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
21+
{D156DEA4-5A69-4BA7-899A-E015A30C8415}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
22+
EndGlobalSection
23+
EndGlobal

TabbedNav/AppDelegate.cs

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
using Foundation;
2+
using UIKit;
3+
4+
namespace TabbedNav
5+
{
6+
// The UIApplicationDelegate for the application. This class is responsible for launching the
7+
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
8+
[Register ("AppDelegate")]
9+
public class AppDelegate : UIApplicationDelegate
10+
{
11+
TabbedController tabBarController;
12+
// class-level declarations
13+
14+
public override UIWindow Window {
15+
get;
16+
set;
17+
}
18+
19+
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
20+
{
21+
// Override point for customization after application launch.
22+
// If not required for your application you can safely delete this method
23+
24+
// Code to start the Xamarin Test Cloud Agent
25+
#if ENABLE_TEST_CLOUD
26+
Xamarin.Calabash.Start();
27+
#endif
28+
29+
Window = new UIWindow (UIScreen.MainScreen.Bounds);
30+
31+
tabBarController = new TabbedController();
32+
33+
// If you have defined a view, add it here:
34+
Window.RootViewController = tabBarController;
35+
36+
// make the window visible
37+
Window.MakeKeyAndVisible ();
38+
39+
return true;
40+
}
41+
42+
public override void OnResignActivation (UIApplication application)
43+
{
44+
// Invoked when the application is about to move from active to inactive state.
45+
// This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message)
46+
// or when the user quits the application and it begins the transition to the background state.
47+
// Games should use this method to pause the game.
48+
}
49+
50+
public override void DidEnterBackground (UIApplication application)
51+
{
52+
// Use this method to release shared resources, save user data, invalidate timers and store the application state.
53+
// If your application supports background exection this method is called instead of WillTerminate when the user quits.
54+
}
55+
56+
public override void WillEnterForeground (UIApplication application)
57+
{
58+
// Called as part of the transiton from background to active state.
59+
// Here you can undo many of the changes made on entering the background.
60+
}
61+
62+
public override void OnActivated (UIApplication application)
63+
{
64+
// Restart any tasks that were paused (or not yet started) while the application was inactive.
65+
// If the application was previously in the background, optionally refresh the user interface.
66+
}
67+
68+
public override void WillTerminate (UIApplication application)
69+
{
70+
// Called when the application is about to terminate. Save data, if needed. See also DidEnterBackground.
71+
}
72+
}
73+
}
74+
75+

TabbedNav/Entitlements.plist

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
</dict>
6+
</plist>

TabbedNav/Event.storyboard

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4443" systemVersion="13A451" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="5">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733.0"/>
5+
</dependencies>
6+
<scenes>
7+
<scene sceneID="4">
8+
<objects>
9+
<navigationController definesPresentationContext="YES" id="5" sceneMemberID="viewController">
10+
<navigationBar key="navigationBar" contentMode="scaleToFill" id="8">
11+
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
12+
</navigationBar>
13+
<connections>
14+
<segue destination="7" kind="relationship" relationship="rootViewController" id="6"/>
15+
</connections>
16+
</navigationController>
17+
<placeholder placeholderIdentifier="IBFirstResponder" id="9" userLabel="First Responder" sceneMemberID="firstResponder"/>
18+
</objects>
19+
<point key="canvasLocation" x="-17" y="98"/>
20+
</scene>
21+
<scene sceneID="10">
22+
<objects>
23+
<viewController id="7" sceneMemberID="viewController" title="Stuff" customClass="RootViewController">
24+
<layoutGuides>
25+
<viewControllerLayoutGuide type="top" id="2"/>
26+
<viewControllerLayoutGuide type="bottom" id="3"/>
27+
</layoutGuides>
28+
<view key="view" contentMode="scaleToFill" id="12">
29+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
30+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
31+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
32+
<subviews>
33+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="23" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO">
34+
<rect key="frame" x="102" y="179" width="96" height="30"/>
35+
<state key="normal" title="Detail Stuff">
36+
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
37+
</state>
38+
<connections>
39+
<segue id="69" destination="19" kind="push"/>
40+
</connections>
41+
</button>
42+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="130" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO">
43+
<rect key="frame" x="89" y="257" width="116" height="30"/>
44+
<state key="normal" title="Button">
45+
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
46+
</state>
47+
<connections>
48+
<action selector="GoToOtherStuff:" destination="7" id="131" eventType="touchUpInside"/>
49+
</connections>
50+
</button>
51+
</subviews>
52+
</view>
53+
<navigationItem key="navigationItem" title="Root View Controller" id="11"/>
54+
<connections>
55+
<segue id="128" destination="83" kind="push" identifier="OtherStuff"/>
56+
</connections>
57+
</viewController>
58+
<placeholder placeholderIdentifier="IBFirstResponder" id="13" userLabel="First Responder" sceneMemberID="firstResponder"/>
59+
</objects>
60+
<point key="canvasLocation" x="424" y="95"/>
61+
</scene>
62+
<scene sceneID="18">
63+
<objects>
64+
<viewController id="19" sceneMemberID="viewController" title="Detail Stuff">
65+
<layoutGuides>
66+
<viewControllerLayoutGuide type="top" id="16"/>
67+
<viewControllerLayoutGuide type="bottom" id="17"/>
68+
</layoutGuides>
69+
<view key="view" contentMode="scaleToFill" id="20">
70+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
71+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
72+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
73+
<subviews>
74+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" lineBreakMode="tailTruncation" minimumFontSize="10" id="71" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO">
75+
<rect key="frame" x="102" y="186" width="42" height="21"/>
76+
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
77+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
78+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
79+
<nil key="highlightedColor"/>
80+
</label>
81+
</subviews>
82+
</view>
83+
</viewController>
84+
<placeholder placeholderIdentifier="IBFirstResponder" id="21" userLabel="First Responder" sceneMemberID="firstResponder"/>
85+
</objects>
86+
<point key="canvasLocation" x="884" y="-161"/>
87+
</scene>
88+
<scene sceneID="82">
89+
<objects>
90+
<viewController id="83" sceneMemberID="viewController" title="Other Stuff" customClass="OtherStuffViewController">
91+
<layoutGuides>
92+
<viewControllerLayoutGuide type="top" id="80"/>
93+
<viewControllerLayoutGuide type="bottom" id="81"/>
94+
</layoutGuides>
95+
<view key="view" contentMode="scaleToFill" id="84">
96+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
97+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
98+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
99+
</view>
100+
</viewController>
101+
<placeholder placeholderIdentifier="IBFirstResponder" id="85" userLabel="First Responder" sceneMemberID="firstResponder"/>
102+
</objects>
103+
<point key="canvasLocation" x="880" y="467"/>
104+
</scene>
105+
</scenes>
106+
<simulatedMetricsContainer key="defaultSimulatedMetrics">
107+
<simulatedStatusBarMetrics key="statusBar"/>
108+
<simulatedOrientationMetrics key="orientation"/>
109+
<simulatedScreenMetrics key="destination" type="retina4"/>
110+
</simulatedMetricsContainer>
111+
</document>

TabbedNav/Info.plist

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDisplayName</key>
6+
<string>TabbedNav</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.companyname.tabbednav</string>
9+
<key>CFBundleShortVersionString</key>
10+
<string>1.0</string>
11+
<key>CFBundleVersion</key>
12+
<string>1.0</string>
13+
<key>LSRequiresIPhoneOS</key>
14+
<true/>
15+
<key>MinimumOSVersion</key>
16+
<string>8.3</string>
17+
<key>UIDeviceFamily</key>
18+
<array>
19+
<integer>1</integer>
20+
<integer>2</integer>
21+
</array>
22+
<key>UILaunchStoryboardName</key>
23+
<string>LaunchScreen</string>
24+
<key>UIRequiredDeviceCapabilities</key>
25+
<array>
26+
<string>armv7</string>
27+
</array>
28+
<key>UISupportedInterfaceOrientations</key>
29+
<array>
30+
<string>UIInterfaceOrientationPortrait</string>
31+
<string>UIInterfaceOrientationLandscapeLeft</string>
32+
<string>UIInterfaceOrientationLandscapeRight</string>
33+
</array>
34+
<key>UISupportedInterfaceOrientations~ipad</key>
35+
<array>
36+
<string>UIInterfaceOrientationPortrait</string>
37+
<string>UIInterfaceOrientationLandscapeLeft</string>
38+
<string>UIInterfaceOrientationLandscapeRight</string>
39+
</array>
40+
<key>XSAppIconAssets</key>
41+
<string>Resources/Images.xcassets/AppIcons.appiconset</string>
42+
</dict>
43+
</plist>

TabbedNav/Main.cs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using UIKit;
2+
3+
namespace TabbedNav
4+
{
5+
public class Application
6+
{
7+
// This is the main entry point of the application.
8+
static void Main (string[] args)
9+
{
10+
// if you want to use a different Application Delegate class from "AppDelegate"
11+
// you can specify it here.
12+
UIApplication.Main (args, null, "AppDelegate");
13+
}
14+
}
15+
}

TabbedNav/OtherStuffViewController.cs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Foundation;
2+
using System;
3+
using System.CodeDom.Compiler;
4+
using UIKit;
5+
6+
namespace TabbedNav
7+
{
8+
partial class OtherStuffViewController : UIViewController
9+
{
10+
public OtherStuffViewController (IntPtr handle) : base (handle)
11+
{
12+
}
13+
}
14+
}

TabbedNav/OtherStuffViewController.designer.cs

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)