summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Wobble.xcodeproj/project.pbxproj6
-rw-r--r--Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstatebin9341 -> 11870 bytes
-rw-r--r--Wobble/Ball.h13
-rw-r--r--Wobble/Ball.m31
-rw-r--r--Wobble/en.lproj/ViewController.xib150
5 files changed, 192 insertions, 8 deletions
diff --git a/Wobble.xcodeproj/project.pbxproj b/Wobble.xcodeproj/project.pbxproj
index ca3fa55..599e850 100644
--- a/Wobble.xcodeproj/project.pbxproj
+++ b/Wobble.xcodeproj/project.pbxproj
@@ -23,6 +23,7 @@
CD4B5FBC1769648300B025A8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD4B5F971769648300B025A8 /* Foundation.framework */; };
CD4B5FC41769648300B025A8 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CD4B5FC21769648300B025A8 /* InfoPlist.strings */; };
CD4B5FC71769648300B025A8 /* WobbleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CD4B5FC61769648300B025A8 /* WobbleTests.m */; };
+ CD4B5FD2176964F800B025A8 /* Ball.m in Sources */ = {isa = PBXBuildFile; fileRef = CD4B5FD1176964F800B025A8 /* Ball.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -58,6 +59,8 @@
CD4B5FC31769648300B025A8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
CD4B5FC51769648300B025A8 /* WobbleTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WobbleTests.h; sourceTree = "<group>"; };
CD4B5FC61769648300B025A8 /* WobbleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WobbleTests.m; sourceTree = "<group>"; };
+ CD4B5FD0176964F800B025A8 /* Ball.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ball.h; sourceTree = "<group>"; };
+ CD4B5FD1176964F800B025A8 /* Ball.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Ball.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -122,6 +125,8 @@
CD4B5FAD1769648300B025A8 /* ViewController.h */,
CD4B5FAE1769648300B025A8 /* ViewController.m */,
CD4B5FB01769648300B025A8 /* ViewController.xib */,
+ CD4B5FD0176964F800B025A8 /* Ball.h */,
+ CD4B5FD1176964F800B025A8 /* Ball.m */,
CD4B5F9C1769648300B025A8 /* Supporting Files */,
);
path = Wobble;
@@ -273,6 +278,7 @@
CD4B5FA21769648300B025A8 /* main.m in Sources */,
CD4B5FA61769648300B025A8 /* AppDelegate.m in Sources */,
CD4B5FAF1769648300B025A8 /* ViewController.m in Sources */,
+ CD4B5FD2176964F800B025A8 /* Ball.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff --git a/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate b/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
index 1d2cc23..b53defb 100644
--- a/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
+++ b/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
diff --git a/Wobble/Ball.h b/Wobble/Ball.h
new file mode 100644
index 0000000..bad8f48
--- /dev/null
+++ b/Wobble/Ball.h
@@ -0,0 +1,13 @@
+//
+// Ball.h
+// Wobble
+//
+// Created by mo khan on 2013-06-12.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface Ball : UIView
+
+@end
diff --git a/Wobble/Ball.m b/Wobble/Ball.m
new file mode 100644
index 0000000..c9f4028
--- /dev/null
+++ b/Wobble/Ball.m
@@ -0,0 +1,31 @@
+//
+// Ball.m
+// Wobble
+//
+// Created by mo khan on 2013-06-12.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import "Ball.h"
+
+@implementation Ball
+
+- (id)initWithFrame:(CGRect)frame
+{
+ self = [super initWithFrame:frame];
+ if (self) {
+ // Initialization code
+ }
+ return self;
+}
+
+/*
+// Only override drawRect: if you perform custom drawing.
+// An empty implementation adversely affects performance during animation.
+- (void)drawRect:(CGRect)rect
+{
+ // Drawing code
+}
+*/
+
+@end
diff --git a/Wobble/en.lproj/ViewController.xib b/Wobble/en.lproj/ViewController.xib
index b9449ed..9d50f2b 100644
--- a/Wobble/en.lproj/ViewController.xib
+++ b/Wobble/en.lproj/ViewController.xib
@@ -8,9 +8,10 @@
<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">2083</string>
+ <string key="NS.object.0">3084</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
+ <string>IBNSLayoutConstraint</string>
<string>IBProxyObject</string>
<string>IBUIView</string>
</array>
@@ -33,14 +34,27 @@
<object class="IBUIView" id="766721923">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
- <array class="NSMutableArray" key="NSSubviews"/>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIView" id="779790879">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{347, 464}, {75, 75}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <object class="NSColor" key="IBUIBackgroundColor" id="851125949">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ </array>
<string key="NSFrame">{{0, 20}, {768, 1004}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAAA</bytes>
- </object>
+ <reference key="NSNextKeyView" ref="779790879"/>
+ <reference key="IBUIBackgroundColor" ref="851125949"/>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
<int key="IBUIStatusBarStyle">2</int>
</object>
@@ -80,9 +94,100 @@
<object class="IBObjectRecord">
<int key="objectID">2</int>
<reference key="object" ref="766721923"/>
- <array class="NSMutableArray" key="children"/>
+ <array class="NSMutableArray" key="children">
+ <object class="IBNSLayoutConstraint" id="1060533727">
+ <reference key="firstItem" ref="779790879"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="766721923"/>
+ <int key="secondAttribute">5</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">347</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="766721923"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="129332105">
+ <reference key="firstItem" ref="779790879"/>
+ <int key="firstAttribute">9</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="766721923"/>
+ <int key="secondAttribute">9</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="766721923"/>
+ <int key="scoringType">5</int>
+ <float key="scoringTypeFloat">22</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="82169406">
+ <reference key="firstItem" ref="779790879"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="766721923"/>
+ <int key="secondAttribute">3</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">464</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="766721923"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="440795979">
+ <reference key="firstItem" ref="766721923"/>
+ <int key="firstAttribute">4</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="779790879"/>
+ <int key="secondAttribute">4</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">465</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="766721923"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">3</int>
+ </object>
+ <reference ref="779790879"/>
+ </array>
<reference key="parent" ref="0"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">9</int>
+ <reference key="object" ref="779790879"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="440795979"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="82169406"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="129332105"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">19</int>
+ <reference key="object" ref="1060533727"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -90,17 +195,46 @@
<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="16.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="18.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="19.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <array class="NSMutableArray" key="2.IBViewMetadataConstraints">
+ <reference ref="440795979"/>
+ <reference ref="82169406"/>
+ <reference ref="129332105"/>
+ <reference ref="1060533727"/>
+ </array>
+ <string key="9.CustomClassName">Ball</string>
+ <string key="9.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <boolean value="NO" key="9.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">8</int>
+ <int key="maxID">19</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
+ <string key="className">Ball</string>
+ <string key="superclassName">UIView</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/Ball.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">NSLayoutConstraint</string>
+ <string key="superclassName">NSObject</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NSLayoutConstraint.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
<string key="className">ViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">