Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added umbrella bucket button

  • Loading branch information...
commit 025df04e4b1ee9786b1f2a9c5008930be408b933 1 parent 70bc382
Nathan Broadbent authored
6 Capfile
... ... @@ -1,8 +1,8 @@
1 1 set :application_name, "Flat 10C"
2   -set :iphone_hostname, "10.0.10.195"
  2 +set :iphone_hostname, "nathans-iphone"
3 3 set :user, "root"
4 4 set :escaped_name, application_name.gsub(" ", '\ ')
5   -set :build_dir, "/Users/nathanB/src/#{application_name}/build/Release-iphoneos"
  5 +set :build_dir, "/Users/ndbroadbent/src/#{application_name}/build/Release-iphoneos"
6 6
7 7 desc "Package your iPhone application"
8 8 task :package do
@@ -29,4 +29,4 @@ desc "Package and install the application on your iPhone"
29 29 task :deploy, :hosts => "#{iphone_hostname}" do
30 30 package
31 31 install
32   -end
  32 +end
3  Classes/Flat_10C_ViewController.h
@@ -18,15 +18,18 @@
18 18 IBOutlet UIImageView *httpResultImageView;
19 19 IBOutlet UISwitch *hallLightSwitch;
20 20 IBOutlet UISwitch *fanSwitch;
  21 + IBOutlet UISwitch *umbrellaSwitch;
21 22 }
22 23
23 24 @property (nonatomic, retain) UISwitch *hallLightSwitch;
24 25 @property (nonatomic, retain) UISwitch *fanSwitch;
  26 +@property (nonatomic, retain) UISwitch *umbrellaSwitch;
25 27
26 28 @property (nonatomic, retain) IASKAppSettingsViewController *appSettingsViewController;
27 29
28 30 - (IBAction)showSettingsPush:(id)sender;
29 31 - (IBAction)hallLightSwitchDidChange:(id)sender;
30 32 - (IBAction)fanSwitchDidChange:(id)sender;
  33 +- (IBAction)umbrellaSwitchDidChange:(id)sender;
31 34
32 35 @end
27 Classes/Flat_10C_ViewController.m
@@ -23,6 +23,7 @@ @implementation Flat_10C_ViewController
23 23 // Synthesize switches
24 24 @synthesize hallLightSwitch;
25 25 @synthesize fanSwitch;
  26 +@synthesize umbrellaSwitch;
26 27
27 28 // Synthesize and configure appSettingsViewController.
28 29 @synthesize appSettingsViewController;
@@ -194,6 +195,32 @@ - (IBAction)fanSwitchDidChange:(id)sender {
194 195 [request startAsynchronous];
195 196 }
196 197
  198 +// When fan switch changes value
  199 +- (IBAction)umbrellaSwitchDidChange:(id)sender {
  200 + // Show spinner
  201 + httpLoadingActivity.hidden = NO;
  202 + [httpLoadingActivity startAnimating];
  203 +
  204 + // Fetch user settings.
  205 + NSUserDefaults *settings = [NSUserDefaults standardUserDefaults];
  206 +
  207 + NSURL *url = [NSURL URLWithString:[settings stringForKey:@"baseURL"]];
  208 +
  209 + // Send the http form post.
  210 + ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
  211 + [request setPostValue:[settings stringForKey:@"user"] forKey:@"user"];
  212 + [request setPostValue:[settings stringForKey:@"password"] forKey:@"password"];
  213 +
  214 + if (umbrellaSwitch.on) {
  215 + [request setPostValue:@"Turn Umbrella Bucket [ON]" forKey:@"action"];
  216 + } else {
  217 + [request setPostValue:@"Turn Umbrella Bucket [OFF]" forKey:@"action"];
  218 + }
  219 +
  220 + [request setDelegate:self];
  221 + [request startAsynchronous];
  222 +}
  223 +
197 224 - (void)requestFinished:(ASIHTTPRequest *)request
198 225 {
199 226 httpResultImageView.image = [UIImage imageNamed:@"tick.png"];
30 DescribeFlat10C.m
... ... @@ -0,0 +1,30 @@
  1 +//
  2 +// DescribeFlat10C.m
  3 +// Flat 10C
  4 +//
  5 +// Created by Nathan B on 28/02/11.
  6 +// Copyright 2011 __MyCompanyName__. All rights reserved.
  7 +//
  8 +
  9 +#import "UISpec.h"
  10 +#import "UIQuery.h"
  11 +
  12 +@interface DescribeFlat10C: NSObject <UISpec> {
  13 +}
  14 +@end
  15 +
  16 +@implementation DescribeFlat10C
  17 +
  18 +-(void)itShouldBeAbleToTurnOnHallLight {
  19 + UIQuery *app = [UIQuery withApplication];
  20 + [expectThat([app.find.label text:@"Hall Light"]) should].exist;
  21 +
  22 + UISwitch *light = [app.Switch index:1];
  23 + [expectThat(light.on) should:be(NO)];
  24 + light.touch;
  25 + [expectThat(light.on) should:be(YES)];
  26 + light.touch;
  27 + [expectThat(light.on) should:be(NO)];
  28 +}
  29 +@end
  30 +
22 Flat 10C .xcodeproj/project.pbxproj
@@ -56,6 +56,7 @@
56 56 209DD735131BFC1400D87354 /* libz.1.2.3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9874AA54127DD96000D34541 /* libz.1.2.3.dylib */; };
57 57 209DD749131BFC6500D87354 /* libUISpec.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 209DD746131BFC5500D87354 /* libUISpec.a */; };
58 58 209DD74C131BFCA300D87354 /* libUISpec.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 209DD746131BFC5500D87354 /* libUISpec.a */; };
  59 + 209DD767131BFCD600D87354 /* DescribeFlat10C.m in Sources */ = {isa = PBXBuildFile; fileRef = 209DD766131BFCD600D87354 /* DescribeFlat10C.m */; };
59 60 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
60 61 2899E5220DE3E06400AC0155 /* Flat_10C_ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* Flat_10C_ViewController.xib */; };
61 62 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
@@ -102,21 +103,21 @@
102 103 isa = PBXContainerItemProxy;
103 104 containerPortal = 209DD73D131BFC5500D87354 /* UISpec.xcodeproj */;
104 105 proxyType = 2;
105   - remoteGlobalIDString = C76EB5D20F74586B00EF8398 /* libUISpec.a */;
  106 + remoteGlobalIDString = C76EB5D20F74586B00EF8398;
106 107 remoteInfo = UISpec;
107 108 };
108 109 209DD747131BFC5500D87354 /* PBXContainerItemProxy */ = {
109 110 isa = PBXContainerItemProxy;
110 111 containerPortal = 209DD73D131BFC5500D87354 /* UISpec.xcodeproj */;
111 112 proxyType = 2;
112   - remoteGlobalIDString = C7D4F29310BDA39C00B00019 /* Specs.app */;
  113 + remoteGlobalIDString = C7D4F29310BDA39C00B00019;
113 114 remoteInfo = Specs;
114 115 };
115 116 209DD74A131BFC8100D87354 /* PBXContainerItemProxy */ = {
116 117 isa = PBXContainerItemProxy;
117 118 containerPortal = 209DD73D131BFC5500D87354 /* UISpec.xcodeproj */;
118 119 proxyType = 1;
119   - remoteGlobalIDString = C76EB5D10F74586B00EF8398 /* UISpec */;
  120 + remoteGlobalIDString = C76EB5D10F74586B00EF8398;
120 121 remoteInfo = UISpec;
121 122 };
122 123 /* End PBXContainerItemProxy section */
@@ -126,9 +127,10 @@
126 127 1D3623240D0F684500981E51 /* Flat_10C_AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Flat_10C_AppDelegate.h; sourceTree = "<group>"; };
127 128 1D3623250D0F684500981E51 /* Flat_10C_AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Flat_10C_AppDelegate.m; sourceTree = "<group>"; };
128 129 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
129   - 209DD73A131BFC1400D87354 /* Flat 10C .app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flat 10C .app"; sourceTree = BUILT_PRODUCTS_DIR; };
  130 + 209DD73A131BFC1400D87354 /* Flat 10C.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flat 10C.app"; sourceTree = BUILT_PRODUCTS_DIR; };
130 131 209DD73C131BFC1400D87354 /* Flat_10C_-Info copy.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Flat_10C_-Info copy.plist"; sourceTree = "<group>"; };
131 132 209DD73D131BFC5500D87354 /* UISpec.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UISpec.xcodeproj; path = ../uispec/xcode/UISpec/UISpec.xcodeproj; sourceTree = SOURCE_ROOT; };
  133 + 209DD766131BFCD600D87354 /* DescribeFlat10C.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DescribeFlat10C.m; sourceTree = "<group>"; };
132 134 288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
133 135 2899E5210DE3E06400AC0155 /* Flat_10C_ViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Flat_10C_ViewController.xib; sourceTree = "<group>"; };
134 136 28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
@@ -194,7 +196,7 @@
194 196 9890D0AD127EC5E200DE7FE0 /* IASKPSToggleSwitchSpecifierViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = IASKPSToggleSwitchSpecifierViewCell.xib; sourceTree = "<group>"; };
195 197 9890D0AE127EC5E200DE7FE0 /* IASKSpecifierValuesView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = IASKSpecifierValuesView.xib; sourceTree = "<group>"; };
196 198 9897D57712CA5C8700B20D0C /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = Resources/Default.png; sourceTree = "<group>"; };
197   - 98A19E8F127E8BED00D33641 /* Flat 10C .app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flat 10C .app"; sourceTree = BUILT_PRODUCTS_DIR; };
  199 + 98A19E8F127E8BED00D33641 /* Flat 10C.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flat 10C.app"; sourceTree = BUILT_PRODUCTS_DIR; };
198 200 98A19E9C127E8DB100D33641 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
199 201 /* End PBXFileReference section */
200 202
@@ -248,8 +250,8 @@
248 250 19C28FACFE9D520D11CA2CBB /* Products */ = {
249 251 isa = PBXGroup;
250 252 children = (
251   - 98A19E8F127E8BED00D33641 /* Flat 10C .app */,
252   - 209DD73A131BFC1400D87354 /* Flat 10C .app */,
  253 + 98A19E8F127E8BED00D33641 /* Flat 10C.app */,
  254 + 209DD73A131BFC1400D87354 /* Flat 10C.app */,
253 255 );
254 256 name = Products;
255 257 sourceTree = "<group>";
@@ -266,6 +268,7 @@
266 268 209DD754131BFCD600D87354 /* Specs */ = {
267 269 isa = PBXGroup;
268 270 children = (
  271 + 209DD766131BFCD600D87354 /* DescribeFlat10C.m */,
269 272 );
270 273 name = Specs;
271 274 sourceTree = "<group>";
@@ -463,7 +466,7 @@
463 466 );
464 467 name = "Flat 10C ";
465 468 productName = "Flat 10C ";
466   - productReference = 98A19E8F127E8BED00D33641 /* Flat 10C .app */;
  469 + productReference = 98A19E8F127E8BED00D33641 /* Flat 10C.app */;
467 470 productType = "com.apple.product-type.application";
468 471 };
469 472 209DD707131BFC1400D87354 /* Flat 10C Specs */ = {
@@ -482,7 +485,7 @@
482 485 );
483 486 name = "Flat 10C Specs";
484 487 productName = "Flat 10C ";
485   - productReference = 209DD73A131BFC1400D87354 /* Flat 10C .app */;
  488 + productReference = 209DD73A131BFC1400D87354 /* Flat 10C.app */;
486 489 productType = "com.apple.product-type.application";
487 490 };
488 491 /* End PBXNativeTarget section */
@@ -665,6 +668,7 @@
665 668 209DD72B131BFC1400D87354 /* IASKSlider.m in Sources */,
666 669 209DD72C131BFC1400D87354 /* IASKSwitch.m in Sources */,
667 670 209DD72D131BFC1400D87354 /* IASKTextField.m in Sources */,
  671 + 209DD767131BFCD600D87354 /* DescribeFlat10C.m in Sources */,
668 672 );
669 673 runOnlyForDeploymentPostprocessing = 0;
670 674 };
117 Flat_10C_ViewController.xib
@@ -68,9 +68,12 @@
68 68 <object class="IBUISwitch" id="126981027">
69 69 <reference key="NSNextResponder" ref="774585933"/>
70 70 <int key="NSvFlags">292</int>
71   - <string key="NSFrame">{{62, 98}, {94, 27}}</string>
  71 + <string key="NSFrame">{{62, 89}, {94, 27}}</string>
72 72 <reference key="NSSuperview" ref="774585933"/>
73 73 <bool key="IBUIOpaque">NO</bool>
  74 + <object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
  75 + <string key="IBUIAccessibilityLabel">HallLightSwitch</string>
  76 + </object>
74 77 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
75 78 <int key="IBUIContentHorizontalAlignment">0</int>
76 79 <int key="IBUIContentVerticalAlignment">0</int>
@@ -78,9 +81,12 @@
78 81 <object class="IBUISwitch" id="958866350">
79 82 <reference key="NSNextResponder" ref="774585933"/>
80 83 <int key="NSvFlags">292</int>
81   - <string key="NSFrame">{{62, 177}, {94, 27}}</string>
  84 + <string key="NSFrame">{{62, 154}, {94, 27}}</string>
82 85 <reference key="NSSuperview" ref="774585933"/>
83 86 <bool key="IBUIOpaque">NO</bool>
  87 + <object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
  88 + <string key="IBUIAccessibilityLabel">LoungeFanSwitch</string>
  89 + </object>
84 90 <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
85 91 <int key="IBUIContentHorizontalAlignment">0</int>
86 92 <int key="IBUIContentVerticalAlignment">0</int>
@@ -88,7 +94,7 @@
88 94 <object class="IBUILabel" id="172814319">
89 95 <reference key="NSNextResponder" ref="774585933"/>
90 96 <int key="NSvFlags">292</int>
91   - <string key="NSFrame">{{175, 101}, {72, 21}}</string>
  97 + <string key="NSFrame">{{175, 92}, {72, 21}}</string>
92 98 <reference key="NSSuperview" ref="774585933"/>
93 99 <bool key="IBUIOpaque">NO</bool>
94 100 <bool key="IBUIClipsSubviews">YES</bool>
@@ -113,7 +119,7 @@
113 119 <object class="IBUILabel" id="43077863">
114 120 <reference key="NSNextResponder" ref="774585933"/>
115 121 <int key="NSvFlags">292</int>
116   - <string key="NSFrame">{{175, 180}, {92, 21}}</string>
  122 + <string key="NSFrame">{{175, 157}, {92, 21}}</string>
117 123 <reference key="NSSuperview" ref="774585933"/>
118 124 <bool key="IBUIOpaque">NO</bool>
119 125 <bool key="IBUIClipsSubviews">YES</bool>
@@ -130,6 +136,36 @@
130 136 <int key="IBUIBaselineAdjustment">1</int>
131 137 <float key="IBUIMinimumFontSize">10</float>
132 138 </object>
  139 + <object class="IBUISwitch" id="69967186">
  140 + <reference key="NSNextResponder" ref="774585933"/>
  141 + <int key="NSvFlags">292</int>
  142 + <string key="NSFrame">{{62, 219}, {94, 27}}</string>
  143 + <reference key="NSSuperview" ref="774585933"/>
  144 + <bool key="IBUIOpaque">NO</bool>
  145 + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  146 + <int key="IBUIContentHorizontalAlignment">0</int>
  147 + <int key="IBUIContentVerticalAlignment">0</int>
  148 + </object>
  149 + <object class="IBUILabel" id="164587858">
  150 + <reference key="NSNextResponder" ref="774585933"/>
  151 + <int key="NSvFlags">292</int>
  152 + <string key="NSFrame">{{175, 214}, {110, 37}}</string>
  153 + <reference key="NSSuperview" ref="774585933"/>
  154 + <bool key="IBUIOpaque">NO</bool>
  155 + <bool key="IBUIClipsSubviews">YES</bool>
  156 + <int key="IBUIContentMode">7</int>
  157 + <bool key="IBUIUserInteractionEnabled">NO</bool>
  158 + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  159 + <string key="IBUIText">Umbrella Bucket</string>
  160 + <object class="NSColor" key="IBUITextColor">
  161 + <int key="NSColorSpace">1</int>
  162 + <bytes key="NSRGB">MSAxIDEAA</bytes>
  163 + <reference key="NSCustomColorSpace" ref="154057569"/>
  164 + </object>
  165 + <reference key="IBUIHighlightedColor" ref="661956479"/>
  166 + <int key="IBUIBaselineAdjustment">1</int>
  167 + <float key="IBUIMinimumFontSize">10</float>
  168 + </object>
133 169 </object>
134 170 <string key="NSFrameSize">{320, 416}</string>
135 171 <reference key="NSSuperview"/>
@@ -209,6 +245,23 @@
209 245 </object>
210 246 <int key="connectionID">40</int>
211 247 </object>
  248 + <object class="IBConnectionRecord">
  249 + <object class="IBCocoaTouchEventConnection" key="connection">
  250 + <string key="label">umbrellaSwitchDidChange:</string>
  251 + <reference key="source" ref="69967186"/>
  252 + <reference key="destination" ref="372490531"/>
  253 + <int key="IBEventType">13</int>
  254 + </object>
  255 + <int key="connectionID">43</int>
  256 + </object>
  257 + <object class="IBConnectionRecord">
  258 + <object class="IBCocoaTouchOutletConnection" key="connection">
  259 + <string key="label">umbrellaSwitch</string>
  260 + <reference key="source" ref="372490531"/>
  261 + <reference key="destination" ref="69967186"/>
  262 + </object>
  263 + <int key="connectionID">44</int>
  264 + </object>
212 265 </object>
213 266 <object class="IBMutableOrderedSet" key="objectRecords">
214 267 <object class="NSArray" key="orderedObjects">
@@ -238,9 +291,11 @@
238 291 <reference ref="559427016"/>
239 292 <reference ref="449018617"/>
240 293 <reference ref="126981027"/>
241   - <reference ref="958866350"/>
242 294 <reference ref="172814319"/>
  295 + <reference ref="958866350"/>
243 296 <reference ref="43077863"/>
  297 + <reference ref="69967186"/>
  298 + <reference ref="164587858"/>
244 299 </object>
245 300 <reference key="parent" ref="0"/>
246 301 </object>
@@ -258,13 +313,13 @@
258 313 <int key="objectID">32</int>
259 314 <reference key="object" ref="126981027"/>
260 315 <reference key="parent" ref="774585933"/>
261   - <string key="objectName">Hall Light Switch</string>
  316 + <string key="objectName">HallLightSwitch</string>
262 317 </object>
263 318 <object class="IBObjectRecord">
264 319 <int key="objectID">33</int>
265 320 <reference key="object" ref="958866350"/>
266 321 <reference key="parent" ref="774585933"/>
267   - <string key="objectName">Lounge Fan Switch</string>
  322 + <string key="objectName">LoungeFanSwitch</string>
268 323 </object>
269 324 <object class="IBObjectRecord">
270 325 <int key="objectID">34</int>
@@ -276,6 +331,16 @@
276 331 <reference key="object" ref="43077863"/>
277 332 <reference key="parent" ref="774585933"/>
278 333 </object>
  334 + <object class="IBObjectRecord">
  335 + <int key="objectID">41</int>
  336 + <reference key="object" ref="69967186"/>
  337 + <reference key="parent" ref="774585933"/>
  338 + </object>
  339 + <object class="IBObjectRecord">
  340 + <int key="objectID">42</int>
  341 + <reference key="object" ref="164587858"/>
  342 + <reference key="parent" ref="774585933"/>
  343 + </object>
279 344 </object>
280 345 </object>
281 346 <object class="NSMutableDictionary" key="flattenedProperties">
@@ -294,6 +359,10 @@
294 359 <string>34.IBViewBoundsToFrameTransform</string>
295 360 <string>35.IBPluginDependency</string>
296 361 <string>35.IBViewBoundsToFrameTransform</string>
  362 + <string>41.IBPluginDependency</string>
  363 + <string>41.IBViewBoundsToFrameTransform</string>
  364 + <string>42.IBPluginDependency</string>
  365 + <string>42.IBViewBoundsToFrameTransform</string>
297 366 <string>6.IBEditorWindowLastContentRect</string>
298 367 <string>6.IBPluginDependency</string>
299 368 <string>6.IBViewBoundsToFrameTransform</string>
@@ -310,21 +379,29 @@
310 379 </object>
311 380 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
312 381 <object class="NSAffineTransform">
313   - <bytes key="NSTransformStruct">P4AAAL+AAABCeAAAwwAAAA</bytes>
  382 + <bytes key="NSTransformStruct">P4AAAL+AAABCeAAAwvYAAA</bytes>
  383 + </object>
  384 + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  385 + <object class="NSAffineTransform">
  386 + <bytes key="NSTransformStruct">P4AAAL+AAABCeAAAwzYAAA</bytes>
314 387 </object>
315 388 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
316 389 <object class="NSAffineTransform">
317   - <bytes key="NSTransformStruct">P4AAAL+AAABCeAAAw08AAA</bytes>
  390 + <bytes key="NSTransformStruct">P4AAAL+AAABDLwAAwvAAAA</bytes>
318 391 </object>
319 392 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
320 393 <object class="NSAffineTransform">
321   - <bytes key="NSTransformStruct">P4AAAL+AAABDLwAAwvoAAA</bytes>
  394 + <bytes key="NSTransformStruct">P4AAAL+AAABDLwAAwzMAAA</bytes>
322 395 </object>
323 396 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
324 397 <object class="NSAffineTransform">
325   - <bytes key="NSTransformStruct">P4AAAL+AAABDLwAAw0wAAA</bytes>
  398 + <bytes key="NSTransformStruct">P4AAAL+AAABCeAAAw28AAA</bytes>
326 399 </object>
327   - <string>{{619, 166}, {320, 480}}</string>
  400 + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  401 + <object class="NSAffineTransform">
  402 + <bytes key="NSTransformStruct">P4AAAL+AAABDLwAAw3QAAA</bytes>
  403 + </object>
  404 + <string>{{640, 464}, {320, 480}}</string>
328 405 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
329 406 <object class="NSAffineTransform">
330 407 <bytes key="NSTransformStruct">P4AAAL+AAAAAAAAAw+UAAA</bytes>
@@ -351,7 +428,7 @@
351 428 </object>
352 429 </object>
353 430 <nil key="sourceID"/>
354   - <int key="maxID">40</int>
  431 + <int key="maxID">44</int>
355 432 </object>
356 433 <object class="IBClassDescriber" key="IBDocument.Classes">
357 434 <object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -366,12 +443,14 @@
366 443 <string>fanSwitchDidChange:</string>
367 444 <string>hallLightSwitchDidChange:</string>
368 445 <string>showSettingsPush:</string>
  446 + <string>umbrellaSwitchDidChange:</string>
369 447 </object>
370 448 <object class="NSMutableArray" key="dict.values">
371 449 <bool key="EncodedWithXMLCoder">YES</bool>
372 450 <string>id</string>
373 451 <string>id</string>
374 452 <string>id</string>
  453 + <string>id</string>
375 454 </object>
376 455 </object>
377 456 <object class="NSMutableDictionary" key="actionInfosByName">
@@ -381,6 +460,7 @@
381 460 <string>fanSwitchDidChange:</string>
382 461 <string>hallLightSwitchDidChange:</string>
383 462 <string>showSettingsPush:</string>
  463 + <string>umbrellaSwitchDidChange:</string>
384 464 </object>
385 465 <object class="NSMutableArray" key="dict.values">
386 466 <bool key="EncodedWithXMLCoder">YES</bool>
@@ -396,6 +476,10 @@
396 476 <string key="name">showSettingsPush:</string>
397 477 <string key="candidateClassName">id</string>
398 478 </object>
  479 + <object class="IBActionInfo">
  480 + <string key="name">umbrellaSwitchDidChange:</string>
  481 + <string key="candidateClassName">id</string>
  482 + </object>
399 483 </object>
400 484 </object>
401 485 <object class="NSMutableDictionary" key="outlets">
@@ -406,6 +490,7 @@
406 490 <string>hallLightSwitch</string>
407 491 <string>httpLoadingActivity</string>
408 492 <string>httpResultImageView</string>
  493 + <string>umbrellaSwitch</string>
409 494 </object>
410 495 <object class="NSMutableArray" key="dict.values">
411 496 <bool key="EncodedWithXMLCoder">YES</bool>
@@ -413,6 +498,7 @@
413 498 <string>UISwitch</string>
414 499 <string>UIActivityIndicatorView</string>
415 500 <string>UIImageView</string>
  501 + <string>UISwitch</string>
416 502 </object>
417 503 </object>
418 504 <object class="NSMutableDictionary" key="toOneOutletInfosByName">
@@ -423,6 +509,7 @@
423 509 <string>hallLightSwitch</string>
424 510 <string>httpLoadingActivity</string>
425 511 <string>httpResultImageView</string>
  512 + <string>umbrellaSwitch</string>
426 513 </object>
427 514 <object class="NSMutableArray" key="dict.values">
428 515 <bool key="EncodedWithXMLCoder">YES</bool>
@@ -442,6 +529,10 @@
442 529 <string key="name">httpResultImageView</string>
443 530 <string key="candidateClassName">UIImageView</string>
444 531 </object>
  532 + <object class="IBToOneOutletInfo">
  533 + <string key="name">umbrellaSwitch</string>
  534 + <string key="candidateClassName">UISwitch</string>
  535 + </object>
445 536 </object>
446 537 </object>
447 538 <object class="IBClassDescriptionSource" key="sourceIdentifier">

0 comments on commit 025df04

Please sign in to comment.
Something went wrong with that request. Please try again.