summaryrefslogtreecommitdiff
path: root/Controls
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-05-21 20:24:58 -0600
committermo khan <mo@mokhan.ca>2013-05-21 20:24:58 -0600
commitef5554041c6015d9bd9b762ee0e23ec268486310 (patch)
tree42aea7a0ab276e4f459e4c47bb18592890bfc478 /Controls
parent1573781ec787a25bc9675fea9f1d98af8f53525e (diff)
some other examples
Diffstat (limited to 'Controls')
-rw-r--r--Controls/Controls.xcodeproj/project.xcworkspace/contents.xcworkspacedata7
-rw-r--r--Controls/Controls.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstatebin0 -> 12975 bytes
-rw-r--r--Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Controls.xcscheme86
-rw-r--r--Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist22
-rw-r--r--Controls/Controls/ViewController.h11
-rw-r--r--Controls/Controls/ViewController.m62
-rw-r--r--Controls/Controls/en.lproj/ViewController.xib438
7 files changed, 612 insertions, 14 deletions
diff --git a/Controls/Controls.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Controls/Controls.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..f184f96
--- /dev/null
+++ b/Controls/Controls.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Controls.xcodeproj">
+ </FileRef>
+</Workspace>
diff --git a/Controls/Controls.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate b/Controls/Controls.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..1428878
--- /dev/null
+++ b/Controls/Controls.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
diff --git a/Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Controls.xcscheme b/Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Controls.xcscheme
new file mode 100644
index 0000000..773864f
--- /dev/null
+++ b/Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Controls.xcscheme
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0460"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "CDD4CA66174321A70096B316"
+ BuildableName = "Controls.app"
+ BlueprintName = "Controls"
+ ReferencedContainer = "container:Controls.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "CDD4CA66174321A70096B316"
+ BuildableName = "Controls.app"
+ BlueprintName = "Controls"
+ ReferencedContainer = "container:Controls.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "CDD4CA66174321A70096B316"
+ BuildableName = "Controls.app"
+ BlueprintName = "Controls"
+ ReferencedContainer = "container:Controls.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "CDD4CA66174321A70096B316"
+ BuildableName = "Controls.app"
+ BlueprintName = "Controls"
+ ReferencedContainer = "container:Controls.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist b/Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..e03110a
--- /dev/null
+++ b/Controls/Controls.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+<?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>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>Controls.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>CDD4CA66174321A70096B316</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
diff --git a/Controls/Controls/ViewController.h b/Controls/Controls/ViewController.h
index 06aa70b..5a9fd6c 100644
--- a/Controls/Controls/ViewController.h
+++ b/Controls/Controls/ViewController.h
@@ -9,5 +9,16 @@
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
+@property (strong, nonatomic) IBOutlet UILabel * myLabel;
+@property (strong, nonatomic) IBOutlet UISegmentedControl * mySegmentedControl;
+@property (strong, nonatomic) IBOutlet UITextField * myTextField;
+@property (strong, nonatomic) IBOutlet UISlider * mySlider;
+@property (strong, nonatomic) IBOutlet UILabel * mySliderLabel;
+@property (strong, nonatomic) IBOutlet UISwitch * mySwitch;
+-(IBAction)changeBackgroundColour:(id)sender;
+-(IBAction)doSomething:(id)sender;
+-(IBAction)scActions:(id)sender;
+-(IBAction)sliderActions:(id)sender;
+-(IBAction)switchActions:(id)sender;
@end
diff --git a/Controls/Controls/ViewController.m b/Controls/Controls/ViewController.m
index b1034f0..27f00b4 100644
--- a/Controls/Controls/ViewController.m
+++ b/Controls/Controls/ViewController.m
@@ -16,8 +16,11 @@
- (void)viewDidLoad
{
+ // Do any additional setup after loading the view, typically from a nib.
[super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
+ self.myLabel.text = @"This is a label";
+// [self.myTextField setDelegate:self];
+ [self sliderActions:@""];
}
- (void)didReceiveMemoryWarning
@@ -26,4 +29,61 @@
// Dispose of any resources that can be recreated.
}
+-(IBAction)doSomething:(id)sender
+{
+
+}
+
+-(IBAction)changeBackgroundColour:(id)sender
+{
+ float r = (float)random()/RAND_MAX;
+ float g = (float)random()/RAND_MAX;
+ float b = (float)random()/RAND_MAX;
+ self.view.backgroundColor = [UIColor colorWithRed:r green:g blue:b alpha:1];
+}
+
+-(IBAction)scActions:(id)sender
+{
+ switch(self.mySegmentedControl.selectedSegmentIndex)
+ {
+ case 0:
+ self.myLabel.text = @"segment 1";
+ break;
+ case 1:
+ self.myLabel.text = @"segment 2";
+ break;
+ case 2:
+ self.myLabel.text = @"segment 3";
+ break;
+ }
+}
+
+- (BOOL)textFieldShouldReturn:(UITextField *)textField
+{
+ [textField resignFirstResponder];
+ return YES;
+}
+
+-(IBAction)sliderActions:(id)sender
+{
+ self.mySliderLabel.text = [NSString stringWithFormat:@"%d", (int)self.mySlider.value];
+}
+
+-(IBAction)switchActions:(id)sender
+{
+ NSLog(@"%d", self.mySwitch.on);
+ if(self.mySwitch.on){
+ self.myLabel.text = @"On!";
+ }
+ else{
+ self.myLabel.text = @"OFF";
+ }
+}
+
+-(IBAction) showAlert:(id)sender
+{
+ UIAlertView * myAlert = [[UIAlertView alloc]
+ initWithTitle:@"the title" message:@"this is a message" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"ok", @"sure", nil];
+ [myAlert show];
+}
@end
diff --git a/Controls/Controls/en.lproj/ViewController.xib b/Controls/Controls/en.lproj/ViewController.xib
index 18825b5..23e9fcc 100644
--- a/Controls/Controls/en.lproj/ViewController.xib
+++ b/Controls/Controls/en.lproj/ViewController.xib
@@ -1,17 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
- <int key="IBDocument.SystemTarget">1536</int>
- <string key="IBDocument.SystemVersion">12A269</string>
- <string key="IBDocument.InterfaceBuilderVersion">2835</string>
- <string key="IBDocument.AppKitVersion">1187</string>
- <string key="IBDocument.HIToolboxVersion">624.00</string>
+ <int key="IBDocument.SystemTarget">1552</int>
+ <string key="IBDocument.SystemVersion">12D78</string>
+ <string key="IBDocument.InterfaceBuilderVersion">3084</string>
+ <string key="IBDocument.AppKitVersion">1187.37</string>
+ <string key="IBDocument.HIToolboxVersion">626.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">1919</string>
+ <string key="NS.object.0">2083</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
+ <string>IBUIButton</string>
+ <string>IBUILabel</string>
+ <string>IBUISegmentedControl</string>
+ <string>IBUISlider</string>
+ <string>IBUISwitch</string>
+ <string>IBUITextField</string>
<string>IBUIView</string>
</array>
<array key="IBDocument.PluginDependencies">
@@ -33,16 +39,207 @@
<object class="IBUIView" id="774585933">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUILabel" id="640935552">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{134, 38}, {42, 21}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="900440889"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Label</string>
+ <object class="NSColor" key="IBUITextColor" id="263948861">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ <string key="IBUIColorCocoaTouchKeyPath">darkTextColor</string>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">0</int>
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="578936060">
+ <int key="type">1</int>
+ <double key="pointSize">17</double>
+ </object>
+ <object class="NSFont" key="IBUIFont" id="438114710">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">17</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <bool key="IBUIAdjustsFontSizeToFit">NO</bool>
+ </object>
+ <object class="IBUIButton" id="900440889">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{242, 27}, {73, 44}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="32290951"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Button</string>
+ <object class="NSColor" key="IBUIHighlightedTitleColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">2</int>
+ <double key="pointSize">15</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUISegmentedControl" id="32290951">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 107}, {161, 44}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="843738519"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBNumberOfSegments">3</int>
+ <int key="IBSelectedSegmentIndex">0</int>
+ <array key="IBSegmentTitles">
+ <string>1</string>
+ <string>2</string>
+ <string>3</string>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentWidths">
+ <real value="0.0"/>
+ <real value="0.0"/>
+ <real value="0.0"/>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentEnabledStates">
+ <boolean value="YES"/>
+ <boolean value="YES"/>
+ <boolean value="YES"/>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentContentOffsets">
+ <string>{0, 0}</string>
+ <string>{0, 0}</string>
+ <string>{0, 0}</string>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentImages">
+ <object class="NSNull" id="4"/>
+ <reference ref="4"/>
+ <reference ref="4"/>
+ </array>
+ </object>
+ <object class="IBUITextField" id="843738519">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 174}, {280, 30}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="128410781"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <string key="IBUIText"/>
+ <int key="IBUIBorderStyle">3</int>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace" id="1071461681">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <bool key="IBUIAdjustsFontSizeToFit">YES</bool>
+ <float key="IBUIMinimumFontSize">17</float>
+ <object class="IBUITextInputTraits" key="IBUITextInputTraits">
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">1</int>
+ <double key="pointSize">14</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">14</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUISlider" id="128410781">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{18, 220}, {212, 23}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="201945698"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <float key="IBUIValue">1</float>
+ <float key="IBUIMaxValue">100</float>
+ </object>
+ <object class="IBUILabel" id="201945698">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{258, 220}, {42, 21}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Label</string>
+ <reference key="IBUITextColor" ref="263948861"/>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">0</int>
+ <int key="IBUITextAlignment">2</int>
+ <reference key="IBUIFontDescription" ref="578936060"/>
+ <reference key="IBUIFont" ref="438114710"/>
+ <bool key="IBUIAdjustsFontSizeToFit">NO</bool>
+ </object>
+ <object class="IBUISwitch" id="537814921">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{5, 266}, {94, 27}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <bool key="IBUIOn">YES</bool>
+ </object>
+ </array>
<string key="NSFrame">{{0, 20}, {320, 548}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
+ <reference key="NSNextKeyView" ref="640935552"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC43NQA</bytes>
- <object class="NSColorSpace" key="NSCustomColorSpace">
- <int key="NSID">2</int>
- </object>
+ <reference key="NSCustomColorSpace" ref="1071461681"/>
</object>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
@@ -76,6 +273,107 @@
</object>
<int key="connectionID">7</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">myLabel</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="640935552"/>
+ </object>
+ <int key="connectionID">11</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">mySlider</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="128410781"/>
+ </object>
+ <int key="connectionID">29</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">mySliderLabel</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="201945698"/>
+ </object>
+ <int key="connectionID">30</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">mySwitch</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="537814921"/>
+ </object>
+ <int key="connectionID">34</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">mySegmentedControl</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="32290951"/>
+ </object>
+ <int key="connectionID">35</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">myTextField</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="843738519"/>
+ </object>
+ <int key="connectionID">36</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">doSomething:</string>
+ <reference key="source" ref="900440889"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">13</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">changeBackgroundColour:</string>
+ <reference key="source" ref="900440889"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">20</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">scActions:</string>
+ <reference key="source" ref="32290951"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">24</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="843738519"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">26</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">sliderActions:</string>
+ <reference key="source" ref="128410781"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">31</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">switchActions:</string>
+ <reference key="source" ref="537814921"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">33</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -99,8 +397,52 @@
<object class="IBObjectRecord">
<int key="objectID">6</int>
<reference key="object" ref="774585933"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="640935552"/>
+ <reference ref="900440889"/>
+ <reference ref="32290951"/>
+ <reference ref="843738519"/>
+ <reference ref="128410781"/>
+ <reference ref="201945698"/>
+ <reference ref="537814921"/>
+ </array>
<reference key="parent" ref="0"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="640935552"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="900440889"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="32290951"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="843738519"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">27</int>
+ <reference key="object" ref="128410781"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">28</int>
+ <reference key="object" ref="201945698"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">32</int>
+ <reference key="object" ref="537814921"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -108,19 +450,90 @@
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="12.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="15.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <integer value="0" key="15.IUISegmentedControlInspectorSelectedSegmentMetadataKey"/>
+ <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="27.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="28.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">7</int>
+ <int key="maxID">36</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">ViewController</string>
<string key="superclassName">UIViewController</string>
+ <dictionary class="NSMutableDictionary" key="actions">
+ <string key="changeBackgroundColour:">id</string>
+ <string key="doSomething:">id</string>
+ <string key="scActions:">id</string>
+ <string key="sliderActions:">id</string>
+ <string key="switchActions:">id</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="actionInfosByName">
+ <object class="IBActionInfo" key="changeBackgroundColour:">
+ <string key="name">changeBackgroundColour:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="doSomething:">
+ <string key="name">doSomething:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="scActions:">
+ <string key="name">scActions:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="sliderActions:">
+ <string key="name">sliderActions:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="switchActions:">
+ <string key="name">switchActions:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="outlets">
+ <string key="myLabel">UILabel</string>
+ <string key="mySegmentedControl">UISegmentedControl</string>
+ <string key="mySlider">UISlider</string>
+ <string key="mySliderLabel">UILabel</string>
+ <string key="mySwitch">UISwitch</string>
+ <string key="myTextField">UITextField</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <object class="IBToOneOutletInfo" key="myLabel">
+ <string key="name">myLabel</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="mySegmentedControl">
+ <string key="name">mySegmentedControl</string>
+ <string key="candidateClassName">UISegmentedControl</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="mySlider">
+ <string key="name">mySlider</string>
+ <string key="candidateClassName">UISlider</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="mySliderLabel">
+ <string key="name">mySliderLabel</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="mySwitch">
+ <string key="name">mySwitch</string>
+ <string key="candidateClassName">UISwitch</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="myTextField">
+ <string key="name">myTextField</string>
+ <string key="candidateClassName">UITextField</string>
+ </object>
+ </dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/ViewController.h</string>
@@ -132,7 +545,6 @@
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <bool key="IBDocument.UseAutolayout">YES</bool>
- <string key="IBCocoaTouchPluginVersion">1919</string>
+ <string key="IBCocoaTouchPluginVersion">2083</string>
</data>
</archive>