Skip to content
Browse files

Added device motion detection mode

  • Loading branch information...
1 parent d341016 commit 55c523f438cf82d871d8544332352462d0cf1fdf @pmanna committed Feb 1, 2012
View
12 Classes/GyroscopeViewController.h
@@ -7,14 +7,20 @@
CMMotionManager *motionManager;
double rotation;
double tolerance;
+ double calibrationTime;
NSTimeInterval lastTimeStamp;
}
-@property(nonatomic, retain) IBOutlet UIImageView *image;
-@property(nonatomic, retain) IBOutlet UITextField *toleranceField;
+@property(nonatomic, retain) IBOutlet UIImageView *image;
+@property(nonatomic, retain) IBOutlet UITextField *toleranceField;
+@property(nonatomic, retain) IBOutlet UITextField *calibrationField;
+@property(nonatomic, retain) IBOutlet UISwitch *gyroToggle;
+@property(nonatomic, retain) IBOutlet UISwitch *motionToggle;
--(IBAction)toggleUpdates:(id)sender;
+-(IBAction)toggleGyroUpdates:(id)sender;
+-(IBAction)toggleMotionUpdates:(id)sender;
-(IBAction)changeTolerance:(id)sender;
+-(IBAction)changeCalibration:(id)sender;
@end
View
68 Classes/GyroscopeViewController.m
@@ -2,7 +2,7 @@
@implementation GyroscopeViewController
-@synthesize image, toleranceField;
+@synthesize image, toleranceField, calibrationField, gyroToggle, motionToggle;
- (void)updateImage: (NSNumber *)rotNum
{
@@ -16,10 +16,14 @@ - (BOOL)textFieldShouldReturn:(UITextField *)textField
return NO;
}
--(IBAction)toggleUpdates:(id)sender {
+-(IBAction)toggleGyroUpdates:(id)sender {
if (motionManager.isGyroAvailable) {
if ([sender isOn]) {
- lastTimeStamp = 0.0;
+ if (motionToggle.on) {
+ motionToggle.on = NO;
+ [self toggleMotionUpdates: motionToggle];
+ }
+ lastTimeStamp = -1.0;
[motionManager startGyroUpdatesToQueue: gyroQueue
withHandler: ^(CMGyroData *gyroData, NSError *error) {
double rate = gyroData.rotationRate.z;
@@ -46,22 +50,67 @@ -(IBAction)toggleUpdates:(id)sender {
}
}
+-(IBAction)toggleMotionUpdates:(id)sender
+{
+ if (motionManager.isDeviceMotionAvailable) {
+ if ([sender isOn]) {
+ if (gyroToggle.on) {
+ gyroToggle.on = NO;
+ [self toggleGyroUpdates: gyroToggle];
+ }
+ lastTimeStamp = -1.0;
+ [motionManager startDeviceMotionUpdatesToQueue: gyroQueue
+ withHandler: ^(CMDeviceMotion *motion, NSError *error) {
+ double yaw = motion.attitude.yaw;
+
+ if (lastTimeStamp < 0.0)
+ lastTimeStamp = motion.timestamp;
+ // Wait a bit to let calibration work
+ if (motion.timestamp - lastTimeStamp < calibrationTime)
+ rotation = yaw;
+ else
+ [self performSelectorOnMainThread: @selector(updateImage:)
+ withObject: [NSNumber numberWithDouble: yaw - rotation]
+ waitUntilDone: NO];
+ }];
+ } else {
+ [motionManager stopDeviceMotionUpdates];
+ rotation = 0.0;
+ [self performSelector: @selector(updateImage:)
+ withObject:[NSNumber numberWithDouble: rotation]
+ afterDelay: 0.5];
+ }
+ }
+}
+
+
-(IBAction)changeTolerance:(id)sender
{
tolerance = fabs([toleranceField.text doubleValue]);
}
+-(IBAction)changeCalibration:(id)sender
+{
+ calibrationTime = fabs([calibrationField.text doubleValue]);
+}
+
- (void)viewDidLoad {
[super viewDidLoad];
- tolerance = 0.01;
- toleranceField.text = [NSString stringWithFormat: @"%.4f", tolerance];
+ tolerance = 0.01;
+ calibrationTime = 1.0;
+ toleranceField.text = [NSString stringWithFormat: @"%.4f", tolerance];
+ calibrationField.text = [NSString stringWithFormat: @"%.1f", calibrationTime];
- motionManager = [[CMMotionManager alloc] init];
- gyroQueue = [[NSOperationQueue alloc] init];
+ motionManager = [[CMMotionManager alloc] init];
+ gyroQueue = [[NSOperationQueue alloc] init];
if (motionManager.isGyroAvailable) {
- motionManager.gyroUpdateInterval = 1 / 60.0;
+ motionManager.gyroUpdateInterval = 1 / 60.0;
+ }
+
+ if (motionManager.isDeviceMotionAvailable) {
+ motionManager.deviceMotionUpdateInterval = 1 / 60.0;
}
}
@@ -117,6 +166,9 @@ - (void)viewDidUnload {
- (void)dealloc {
self.image = nil;
self.toleranceField = nil;
+ self.calibrationField = nil;
+ self.gyroToggle = nil;
+ self.motionToggle = nil;
[super dealloc];
}
View
17 Gyroscope.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 45;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
@@ -150,8 +150,11 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ };
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Gyroscope" */;
- compatibilityVersion = "Xcode 3.1";
+ compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -228,13 +231,12 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Paolo Manna (LFFG7C6JY8)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
- PREBINDING = NO;
- "PROVISIONING_PROFILE[sdk=iphoneos*]" = "4A3C65C9-92ED-448E-A1D9-53A8B9E4B463";
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
};
name = Debug;
@@ -243,14 +245,13 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Paolo Manna (LFFG7C6JY8)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
- PREBINDING = NO;
- "PROVISIONING_PROFILE[sdk=iphoneos*]" = "4A3C65C9-92ED-448E-A1D9-53A8B9E4B463";
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
};
name = Release;
View
258 GyroscopeViewController.xib
@@ -92,7 +92,7 @@
<object class="IBUILabel" id="139629125">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{20, 23}, {193, 21}}</string>
+ <string key="NSFrame">{{20, 13}, {193, 21}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="580743478"/>
@@ -126,7 +126,7 @@
<object class="IBUILabel" id="666985514">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{20, 60}, {105, 21}}</string>
+ <string key="NSFrame">{{20, 47}, {105, 21}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="653561162"/>
@@ -147,10 +147,10 @@
<object class="IBUILabel" id="493222742">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{221, 60}, {79, 21}}</string>
+ <string key="NSFrame">{{221, 47}, {79, 21}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="515434477"/>
+ <reference key="NSNextKeyView" ref="609778435"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
@@ -167,7 +167,7 @@
<object class="IBUISwitch" id="580743478">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{206, 20}, {94, 27}}</string>
+ <string key="NSFrame">{{206, 10}, {94, 27}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="666985514"/>
@@ -176,10 +176,43 @@
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
</object>
+ <object class="IBUILabel" id="609778435">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 81}, {193, 21}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="966237165"/>
+ <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">Motion updates:</string>
+ <reference key="IBUITextColor" ref="584714031"/>
+ <reference key="IBUIHighlightedColor" ref="589286315"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">2</int>
+ <reference key="IBUIFontDescription" ref="19418389"/>
+ <reference key="IBUIFont" ref="380131377"/>
+ </object>
+ <object class="IBUISwitch" id="966237165">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{206, 78}, {94, 27}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="248057365"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ </object>
<object class="IBUITextField" id="653561162">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{133, 55}, {80, 31}}</string>
+ <string key="NSFrame">{{133, 42}, {80, 31}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="493222742"/>
@@ -201,25 +234,93 @@
<object class="IBUITextInputTraits" key="IBUITextInputTraits">
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
- <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="140552706">
<int key="type">2</int>
<double key="pointSize">16</double>
</object>
- <object class="NSFont" key="IBUIFont">
+ <object class="NSFont" key="IBUIFont" id="791995826">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">16</double>
<int key="NSfFlags">16</int>
</object>
</object>
+ <object class="IBUILabel" id="248057365">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 115}, {137, 21}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="678507300"/>
+ <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">Calibration time:</string>
+ <reference key="IBUITextColor" ref="584714031"/>
+ <reference key="IBUIHighlightedColor" ref="589286315"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">2</int>
+ <reference key="IBUIFontDescription" ref="19418389"/>
+ <reference key="IBUIFont" ref="380131377"/>
+ </object>
+ <object class="IBUILabel" id="249399191">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{221, 115}, {79, 21}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="515434477"/>
+ <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">sec</string>
+ <reference key="IBUITextColor" ref="584714031"/>
+ <reference key="IBUIHighlightedColor" ref="589286315"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <reference key="IBUIFontDescription" ref="19418389"/>
+ <reference key="IBUIFont" ref="380131377"/>
+ </object>
+ <object class="IBUITextField" id="678507300">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{165, 110}, {48, 31}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="249399191"/>
+ <string key="NSReuseIdentifierKey">_NS:304</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <string key="IBUIText">0.0</string>
+ <int key="IBUIBorderStyle">3</int>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ <reference key="NSCustomColorSpace" ref="236021949"/>
+ </object>
+ <int key="IBUITextAlignment">2</int>
+ <bool key="IBUIAdjustsFontSizeToFit">YES</bool>
+ <float key="IBUIMinimumFontSize">17</float>
+ <object class="IBUITextInputTraits" key="IBUITextInputTraits">
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <reference key="IBUIFontDescription" ref="140552706"/>
+ <reference key="IBUIFont" ref="791995826"/>
+ </object>
</object>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="139629125"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC43NQA</bytes>
- <reference key="NSCustomColorSpace" ref="236021949"/>
+ <bytes key="NSWhite">MC44AA</bytes>
</object>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
@@ -254,13 +355,37 @@
<int key="connectionID">20</int>
</object>
<object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">motionToggle</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="966237165"/>
+ </object>
+ <int key="connectionID">26</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">gyroToggle</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="580743478"/>
+ </object>
+ <int key="connectionID">27</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">calibrationField</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="678507300"/>
+ </object>
+ <int key="connectionID">35</int>
+ </object>
+ <object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">toggleUpdates:</string>
+ <string key="label">toggleGyroUpdates:</string>
<reference key="source" ref="580743478"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">13</int>
</object>
- <int key="connectionID">13</int>
+ <int key="connectionID">22</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
@@ -279,6 +404,32 @@
</object>
<int key="connectionID">21</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">toggleMotionUpdates:</string>
+ <reference key="source" ref="966237165"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">28</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="678507300"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">33</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">changeCalibration:</string>
+ <reference key="source" ref="678507300"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">34</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -315,6 +466,11 @@
<reference ref="666985514"/>
<reference ref="493222742"/>
<reference ref="653561162"/>
+ <reference ref="609778435"/>
+ <reference ref="966237165"/>
+ <reference ref="248057365"/>
+ <reference ref="249399191"/>
+ <reference ref="678507300"/>
</object>
<reference key="parent" ref="0"/>
</object>
@@ -358,6 +514,31 @@
<reference key="object" ref="493222742"/>
<reference key="parent" ref="774585933"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">23</int>
+ <reference key="object" ref="609778435"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">24</int>
+ <reference key="object" ref="966237165"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">29</int>
+ <reference key="object" ref="248057365"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">30</int>
+ <reference key="object" ref="249399191"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">31</int>
+ <reference key="object" ref="678507300"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -374,6 +555,11 @@
<string>16.IBPluginDependency</string>
<string>17.IBPluginDependency</string>
<string>18.IBPluginDependency</string>
+ <string>23.IBPluginDependency</string>
+ <string>24.IBPluginDependency</string>
+ <string>29.IBPluginDependency</string>
+ <string>30.IBPluginDependency</string>
+ <string>31.IBPluginDependency</string>
<string>6.IBPluginDependency</string>
<string>8.IBPluginDependency</string>
<string>9.IBPluginDependency</string>
@@ -393,6 +579,11 @@
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -407,7 +598,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">21</int>
+ <int key="maxID">35</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -419,30 +610,44 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>changeCalibration:</string>
<string>changeTolerance:</string>
- <string>toggleUpdates:</string>
+ <string>toggleGyroUpdates:</string>
+ <string>toggleMotionUpdates:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
+ <string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>changeCalibration:</string>
<string>changeTolerance:</string>
- <string>toggleUpdates:</string>
+ <string>toggleGyroUpdates:</string>
+ <string>toggleMotionUpdates:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo">
+ <string key="name">changeCalibration:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
<string key="name">changeTolerance:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
- <string key="name">toggleUpdates:</string>
+ <string key="name">toggleGyroUpdates:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">toggleMotionUpdates:</string>
<string key="candidateClassName">id</string>
</object>
</object>
@@ -451,29 +656,50 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>calibrationField</string>
+ <string>gyroToggle</string>
<string>image</string>
+ <string>motionToggle</string>
<string>toleranceField</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UITextField</string>
+ <string>UISwitch</string>
<string>UIImageView</string>
+ <string>UISwitch</string>
<string>UITextField</string>
</object>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>calibrationField</string>
+ <string>gyroToggle</string>
<string>image</string>
+ <string>motionToggle</string>
<string>toleranceField</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBToOneOutletInfo">
+ <string key="name">calibrationField</string>
+ <string key="candidateClassName">UITextField</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">gyroToggle</string>
+ <string key="candidateClassName">UISwitch</string>
+ </object>
+ <object class="IBToOneOutletInfo">
<string key="name">image</string>
<string key="candidateClassName">UIImageView</string>
</object>
<object class="IBToOneOutletInfo">
+ <string key="name">motionToggle</string>
+ <string key="candidateClassName">UISwitch</string>
+ </object>
+ <object class="IBToOneOutletInfo">
<string key="name">toleranceField</string>
<string key="candidateClassName">UITextField</string>
</object>

0 comments on commit 55c523f

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