Permalink
Browse files

Very basic paging.

  • Loading branch information...
1 parent f687c14 commit 272463cfc4f124bf3dab50b10f28dcd513ccbae5 @hollance committed Apr 30, 2011
@@ -23,10 +23,11 @@
7B5F044C136302F3006782F8 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B5F043C136302F3006782F8 /* AppDelegate.m */; };
7B5F044D136302F3006782F8 /* AppViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B5F043E136302F3006782F8 /* AppViewController.m */; };
7B5F044E136302F3006782F8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B5F043F136302F3006782F8 /* main.m */; };
+ 7B94AC4C136BF9900079ECCB /* PageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B94AC4B136BF9900079ECCB /* PageView.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
- 7B0F4C931363017C00DE4938 /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 7B0F4C931363017C00DE4938 /* Paging.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Paging.app; sourceTree = BUILT_PRODUCTS_DIR; };
7B0F4C971363017C00DE4938 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
7B0F4C991363017C00DE4938 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
7B0F4C9B1363017C00DE4938 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
@@ -47,6 +48,8 @@
7B5F043E136302F3006782F8 /* AppViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppViewController.m; sourceTree = "<group>"; };
7B5F043F136302F3006782F8 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
7B5F0440136302F3006782F8 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = "<group>"; };
+ 7B94AC4A136BF9900079ECCB /* PageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageView.h; sourceTree = "<group>"; };
+ 7B94AC4B136BF9900079ECCB /* PageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PageView.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -77,7 +80,7 @@
7B0F4C941363017C00DE4938 /* Products */ = {
isa = PBXGroup;
children = (
- 7B0F4C931363017C00DE4938 /* App.app */,
+ 7B0F4C931363017C00DE4938 /* Paging.app */,
);
name = Products;
sourceTree = "<group>";
@@ -126,16 +129,18 @@
7B5F043E136302F3006782F8 /* AppViewController.m */,
7B5F043F136302F3006782F8 /* main.m */,
7B5F0440136302F3006782F8 /* Prefix.pch */,
+ 7B94AC4A136BF9900079ECCB /* PageView.h */,
+ 7B94AC4B136BF9900079ECCB /* PageView.m */,
);
path = Sources;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
- 7B0F4C921363017C00DE4938 /* App */ = {
+ 7B0F4C921363017C00DE4938 /* Paging */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 7B0F4CB41363017C00DE4938 /* Build configuration list for PBXNativeTarget "App" */;
+ buildConfigurationList = 7B0F4CB41363017C00DE4938 /* Build configuration list for PBXNativeTarget "Paging" */;
buildPhases = (
7B0F4C8F1363017C00DE4938 /* Sources */,
7B0F4C901363017C00DE4938 /* Frameworks */,
@@ -145,9 +150,9 @@
);
dependencies = (
);
- name = App;
+ name = Paging;
productName = App;
- productReference = 7B0F4C931363017C00DE4938 /* App.app */;
+ productReference = 7B0F4C931363017C00DE4938 /* Paging.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
@@ -158,7 +163,7 @@
attributes = {
ORGANIZATIONNAME = Hollance;
};
- buildConfigurationList = 7B0F4C8D1363017C00DE4938 /* Build configuration list for PBXProject "App" */;
+ buildConfigurationList = 7B0F4C8D1363017C00DE4938 /* Build configuration list for PBXProject "Paging" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
@@ -170,7 +175,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
- 7B0F4C921363017C00DE4938 /* App */,
+ 7B0F4C921363017C00DE4938 /* Paging */,
);
};
/* End PBXProject section */
@@ -203,6 +208,7 @@
7B5F044C136302F3006782F8 /* AppDelegate.m in Sources */,
7B5F044D136302F3006782F8 /* AppViewController.m in Sources */,
7B5F044E136302F3006782F8 /* main.m in Sources */,
+ 7B94AC4C136BF9900079ECCB /* PageView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -274,7 +280,7 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
- 7B0F4C8D1363017C00DE4938 /* Build configuration list for PBXProject "App" */ = {
+ 7B0F4C8D1363017C00DE4938 /* Build configuration list for PBXProject "Paging" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7B0F4CB21363017C00DE4938 /* Debug */,
@@ -283,7 +289,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- 7B0F4CB41363017C00DE4938 /* Build configuration list for PBXNativeTarget "App" */ = {
+ 7B0F4CB41363017C00DE4938 /* Build configuration list for PBXNativeTarget "Paging" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7B0F4CB51363017C00DE4938 /* Debug */,
View
@@ -12,10 +12,13 @@
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>IBProxyObject</string>
+ <string>IBUIViewController</string>
<string>IBUICustomObject</string>
<string>IBUIWindow</string>
- <string>IBUIViewController</string>
- <string>IBProxyObject</string>
+ <string>IBUIPageControl</string>
+ <string>IBUIScrollView</string>
+ <string>IBUIView</string>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -42,6 +45,51 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIViewController" id="943309135">
+ <object class="IBUIView" key="IBUIView" id="361271949">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBUIPageControl" id="609289072">
+ <reference key="NSNextResponder" ref="361271949"/>
+ <int key="NSvFlags">1316</int>
+ <object class="NSPSMatrix" key="NSFrameMatrix"/>
+ <string key="NSFrame">{{0, 424}, {320, 36}}</string>
+ <reference key="NSSuperview" ref="361271949"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUINumberOfPages">3</int>
+ </object>
+ <object class="IBUIScrollView" id="27730993">
+ <reference key="NSNextResponder" ref="361271949"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrameSize">{320, 416}</string>
+ <reference key="NSSuperview" ref="361271949"/>
+ <reference key="NSWindow"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4yNTA5ODAzOTIyIDAuMjUwOTgwMzkyMiAwLjI1MDk4MDM5MjIAA</bytes>
+ </object>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <bool key="IBUIMultipleTouchEnabled">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBUIPagingEnabled">YES</bool>
+ </object>
+ </object>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="609289072"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
<int key="IBUIInterfaceOrientation">1</int>
@@ -51,9 +99,12 @@
<bool key="IBUIHorizontal">NO</bool>
</object>
<object class="IBUIWindow" id="117978783">
- <nil key="NSNextResponder"/>
+ <reference key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 480}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MSAxIDEAA</bytes>
@@ -92,6 +143,39 @@
</object>
<int key="connectionID">14</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">scrollView</string>
+ <reference key="source" ref="943309135"/>
+ <reference key="destination" ref="27730993"/>
+ </object>
+ <int key="connectionID">19</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">pageControl</string>
+ <reference key="source" ref="943309135"/>
+ <reference key="destination" ref="609289072"/>
+ </object>
+ <int key="connectionID">20</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="27730993"/>
+ <reference key="destination" ref="943309135"/>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">pageTurn</string>
+ <reference key="source" ref="609289072"/>
+ <reference key="destination" ref="943309135"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">22</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -121,13 +205,38 @@
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="943309135"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="361271949"/>
+ </object>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">12</int>
<reference key="object" ref="117978783"/>
<reference key="parent" ref="0"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="361271949"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="609289072"/>
+ <reference ref="27730993"/>
+ </object>
+ <reference key="parent" ref="943309135"/>
+ <string key="objectName">View</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="609289072"/>
+ <reference key="parent" ref="361271949"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="27730993"/>
+ <reference key="parent" ref="361271949"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -141,6 +250,9 @@
<string>10.IBPluginDependency</string>
<string>12.IBEditorWindowLastContentRect</string>
<string>12.IBPluginDependency</string>
+ <string>16.IBPluginDependency</string>
+ <string>17.IBPluginDependency</string>
+ <string>18.IBPluginDependency</string>
<string>3.CustomClassName</string>
<string>3.IBPluginDependency</string>
</object>
@@ -153,6 +265,9 @@
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>{{525, 346}, {320, 480}}</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>AppDelegate</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
@@ -169,7 +284,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">15</int>
+ <int key="maxID">22</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -217,6 +332,49 @@
<object class="IBPartialClassDescription">
<string key="className">AppViewController</string>
<string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">pageTurn</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">pageTurn</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">pageTurn</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>pageControl</string>
+ <string>scrollView</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UIPageControl</string>
+ <string>UIScrollView</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>pageControl</string>
+ <string>scrollView</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">pageControl</string>
+ <string key="candidateClassName">UIPageControl</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">scrollView</string>
+ <string key="candidateClassName">UIScrollView</string>
+ </object>
+ </object>
+ </object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/AppViewController.h</string>
@@ -1,6 +1,11 @@
-@interface AppViewController : UIViewController
+@interface AppViewController : UIViewController <UIScrollViewDelegate>
{
}
+@property (nonatomic, retain) IBOutlet UIScrollView* scrollView;
+@property (nonatomic, retain) IBOutlet UIPageControl* pageControl;
+
+- (IBAction)pageTurn;
+
@end
Oops, something went wrong.

0 comments on commit 272463c

Please sign in to comment.