Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

回転時のビューの調整

  • Loading branch information...
commit 689e35f24ad612fca95d1645d3fdf339725927d6 1 parent 4cf4ff4
Inoue Takayuki authored February 27, 2012
219  SlideMenuController/Master2ViewController.xib
... ...
@@ -0,0 +1,219 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
  3
+	<data>
  4
+		<int key="IBDocument.SystemTarget">1280</int>
  5
+		<string key="IBDocument.SystemVersion">11D50b</string>
  6
+		<string key="IBDocument.InterfaceBuilderVersion">1938</string>
  7
+		<string key="IBDocument.AppKitVersion">1138.32</string>
  8
+		<string key="IBDocument.HIToolboxVersion">568.00</string>
  9
+		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
  10
+			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  11
+			<string key="NS.object.0">933</string>
  12
+		</object>
  13
+		<array key="IBDocument.IntegratedClassDependencies">
  14
+			<string>IBProxyObject</string>
  15
+			<string>IBUIView</string>
  16
+			<string>IBUITableView</string>
  17
+		</array>
  18
+		<array key="IBDocument.PluginDependencies">
  19
+			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  20
+		</array>
  21
+		<object class="NSMutableDictionary" key="IBDocument.Metadata">
  22
+			<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
  23
+			<integer value="1" key="NS.object.0"/>
  24
+		</object>
  25
+		<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
  26
+			<object class="IBProxyObject" id="372490531">
  27
+				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
  28
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  29
+			</object>
  30
+			<object class="IBProxyObject" id="975951072">
  31
+				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
  32
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  33
+			</object>
  34
+			<object class="IBUIView" id="191373211">
  35
+				<reference key="NSNextResponder"/>
  36
+				<int key="NSvFlags">319</int>
  37
+				<array class="NSMutableArray" key="NSSubviews">
  38
+					<object class="IBUITableView" id="137657450">
  39
+						<reference key="NSNextResponder" ref="191373211"/>
  40
+						<int key="NSvFlags">274</int>
  41
+						<string key="NSFrameSize">{320, 436}</string>
  42
+						<reference key="NSSuperview" ref="191373211"/>
  43
+						<reference key="NSWindow"/>
  44
+						<reference key="NSNextKeyView"/>
  45
+						<string key="NSReuseIdentifierKey">_NS:418</string>
  46
+						<object class="NSColor" key="IBUIBackgroundColor">
  47
+							<int key="NSColorSpace">3</int>
  48
+							<bytes key="NSWhite">MCAwAA</bytes>
  49
+						</object>
  50
+						<bool key="IBUIClipsSubviews">YES</bool>
  51
+						<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  52
+						<bool key="IBUIAlwaysBounceVertical">YES</bool>
  53
+						<int key="IBUISeparatorStyle">1</int>
  54
+						<int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
  55
+						<bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
  56
+						<float key="IBUIRowHeight">44</float>
  57
+						<float key="IBUISectionHeaderHeight">22</float>
  58
+						<float key="IBUISectionFooterHeight">22</float>
  59
+					</object>
  60
+				</array>
  61
+				<string key="NSFrame">{{0, 44}, {320, 436}}</string>
  62
+				<reference key="NSSuperview"/>
  63
+				<reference key="NSWindow"/>
  64
+				<reference key="NSNextKeyView" ref="137657450"/>
  65
+				<object class="NSColor" key="IBUIBackgroundColor">
  66
+					<int key="NSColorSpace">1</int>
  67
+					<bytes key="NSRGB">MC4xMTg5MDgyMjk1IDAuNTY0MTAwODYzNiAwLjY5ODkwOTk4MzkAA</bytes>
  68
+				</object>
  69
+				<object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
  70
+					<bool key="IBUIPrompted">NO</bool>
  71
+				</object>
  72
+				<object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
  73
+					<string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
  74
+					<object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
  75
+						<bool key="EncodedWithXMLCoder">YES</bool>
  76
+						<array key="dict.sortedKeys">
  77
+							<integer value="1"/>
  78
+							<integer value="3"/>
  79
+						</array>
  80
+						<array class="NSMutableArray" key="dict.values">
  81
+							<string>{320, 480}</string>
  82
+							<string>{480, 320}</string>
  83
+						</array>
  84
+					</object>
  85
+					<string key="IBUITargetRuntime">IBCocoaTouchFramework</string>
  86
+					<string key="IBUIDisplayName">iPhone/iPod touch Full Screen</string>
  87
+				</object>
  88
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  89
+			</object>
  90
+		</array>
  91
+		<object class="IBObjectContainer" key="IBDocument.Objects">
  92
+			<array class="NSMutableArray" key="connectionRecords">
  93
+				<object class="IBConnectionRecord">
  94
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  95
+						<string key="label">view</string>
  96
+						<reference key="source" ref="372490531"/>
  97
+						<reference key="destination" ref="191373211"/>
  98
+					</object>
  99
+					<int key="connectionID">3</int>
  100
+				</object>
  101
+				<object class="IBConnectionRecord">
  102
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  103
+						<string key="label">tableView</string>
  104
+						<reference key="source" ref="372490531"/>
  105
+						<reference key="destination" ref="137657450"/>
  106
+					</object>
  107
+					<int key="connectionID">7</int>
  108
+				</object>
  109
+				<object class="IBConnectionRecord">
  110
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  111
+						<string key="label">dataSource</string>
  112
+						<reference key="source" ref="137657450"/>
  113
+						<reference key="destination" ref="372490531"/>
  114
+					</object>
  115
+					<int key="connectionID">5</int>
  116
+				</object>
  117
+				<object class="IBConnectionRecord">
  118
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  119
+						<string key="label">delegate</string>
  120
+						<reference key="source" ref="137657450"/>
  121
+						<reference key="destination" ref="372490531"/>
  122
+					</object>
  123
+					<int key="connectionID">6</int>
  124
+				</object>
  125
+			</array>
  126
+			<object class="IBMutableOrderedSet" key="objectRecords">
  127
+				<array key="orderedObjects">
  128
+					<object class="IBObjectRecord">
  129
+						<int key="objectID">0</int>
  130
+						<array key="object" id="0"/>
  131
+						<reference key="children" ref="1000"/>
  132
+						<nil key="parent"/>
  133
+					</object>
  134
+					<object class="IBObjectRecord">
  135
+						<int key="objectID">1</int>
  136
+						<reference key="object" ref="191373211"/>
  137
+						<array class="NSMutableArray" key="children">
  138
+							<reference ref="137657450"/>
  139
+						</array>
  140
+						<reference key="parent" ref="0"/>
  141
+					</object>
  142
+					<object class="IBObjectRecord">
  143
+						<int key="objectID">-1</int>
  144
+						<reference key="object" ref="372490531"/>
  145
+						<reference key="parent" ref="0"/>
  146
+						<string key="objectName">File's Owner</string>
  147
+					</object>
  148
+					<object class="IBObjectRecord">
  149
+						<int key="objectID">-2</int>
  150
+						<reference key="object" ref="975951072"/>
  151
+						<reference key="parent" ref="0"/>
  152
+					</object>
  153
+					<object class="IBObjectRecord">
  154
+						<int key="objectID">4</int>
  155
+						<reference key="object" ref="137657450"/>
  156
+						<reference key="parent" ref="191373211"/>
  157
+					</object>
  158
+				</array>
  159
+			</object>
  160
+			<dictionary class="NSMutableDictionary" key="flattenedProperties">
  161
+				<string key="-1.CustomClassName">Master2ViewController</string>
  162
+				<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  163
+				<string key="-2.CustomClassName">UIResponder</string>
  164
+				<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  165
+				<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  166
+				<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  167
+			</dictionary>
  168
+			<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
  169
+			<nil key="activeLocalization"/>
  170
+			<dictionary class="NSMutableDictionary" key="localizations"/>
  171
+			<nil key="sourceID"/>
  172
+			<int key="maxID">7</int>
  173
+		</object>
  174
+		<object class="IBClassDescriber" key="IBDocument.Classes">
  175
+			<array class="NSMutableArray" key="referencedPartialClassDescriptions">
  176
+				<object class="IBPartialClassDescription">
  177
+					<string key="className">ContentViewController</string>
  178
+					<string key="superclassName">UIViewController</string>
  179
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  180
+						<string key="majorKey">IBProjectSource</string>
  181
+						<string key="minorKey">./Classes/ContentViewController.h</string>
  182
+					</object>
  183
+				</object>
  184
+				<object class="IBPartialClassDescription">
  185
+					<string key="className">Master2ViewController</string>
  186
+					<string key="superclassName">MasterViewController</string>
  187
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  188
+						<string key="majorKey">IBProjectSource</string>
  189
+						<string key="minorKey">./Classes/Master2ViewController.h</string>
  190
+					</object>
  191
+				</object>
  192
+				<object class="IBPartialClassDescription">
  193
+					<string key="className">MasterViewController</string>
  194
+					<string key="superclassName">ContentViewController</string>
  195
+					<object class="NSMutableDictionary" key="outlets">
  196
+						<string key="NS.key.0">tableView</string>
  197
+						<string key="NS.object.0">UITableView</string>
  198
+					</object>
  199
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
  200
+						<string key="NS.key.0">tableView</string>
  201
+						<object class="IBToOneOutletInfo" key="NS.object.0">
  202
+							<string key="name">tableView</string>
  203
+							<string key="candidateClassName">UITableView</string>
  204
+						</object>
  205
+					</object>
  206
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  207
+						<string key="majorKey">IBProjectSource</string>
  208
+						<string key="minorKey">./Classes/MasterViewController.h</string>
  209
+					</object>
  210
+				</object>
  211
+			</array>
  212
+		</object>
  213
+		<int key="IBDocument.localizationMode">0</int>
  214
+		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
  215
+		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
  216
+		<int key="IBDocument.defaultPropertyAccessControl">3</int>
  217
+		<string key="IBCocoaTouchPluginVersion">933</string>
  218
+	</data>
  219
+</archive>
11  SlideMenuController/MenuViewController.m
@@ -123,11 +123,12 @@ - (IBAction)slide:(id)sender
123 123
 
124 124
 - (CGFloat)slideWidth
125 125
 {
126  
-    if (UIDeviceOrientationIsLandscape([[UIDevice currentDevice] orientation])) {
127  
-        return 420;
128  
-    } else {
129  
-        return 260;
130  
-    }
  126
+    return 260;
  127
+//    if (UIDeviceOrientationIsLandscape([[UIDevice currentDevice] orientation])) {
  128
+//        return 420;
  129
+//    } else {
  130
+//        return 260;
  131
+//    }
131 132
 }
132 133
 
133 134
 @end
48  SlideMenuController/MenuViewController.xib
@@ -2,13 +2,13 @@
2 2
 <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
3 3
 	<data>
4 4
 		<int key="IBDocument.SystemTarget">1280</int>
5  
-		<string key="IBDocument.SystemVersion">11C74</string>
6  
-		<string key="IBDocument.InterfaceBuilderVersion">1934</string>
7  
-		<string key="IBDocument.AppKitVersion">1138.23</string>
8  
-		<string key="IBDocument.HIToolboxVersion">567.00</string>
  5
+		<string key="IBDocument.SystemVersion">11D50b</string>
  6
+		<string key="IBDocument.InterfaceBuilderVersion">1938</string>
  7
+		<string key="IBDocument.AppKitVersion">1138.32</string>
  8
+		<string key="IBDocument.HIToolboxVersion">568.00</string>
9 9
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
10 10
 			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
11  
-			<string key="NS.object.0">931</string>
  11
+			<string key="NS.object.0">933</string>
12 12
 		</object>
13 13
 		<array key="IBDocument.IntegratedClassDependencies">
14 14
 			<string>IBUISearchDisplayController</string>
@@ -40,11 +40,10 @@
40 40
 				<array class="NSMutableArray" key="NSSubviews">
41 41
 					<object class="IBUITableView" id="39699859">
42 42
 						<reference key="NSNextResponder" ref="191373211"/>
43  
-						<int key="NSvFlags">274</int>
  43
+						<int key="NSvFlags">276</int>
44 44
 						<string key="NSFrame">{{0, 44}, {260, 416}}</string>
45 45
 						<reference key="NSSuperview" ref="191373211"/>
46 46
 						<reference key="NSWindow"/>
47  
-						<reference key="NSNextKeyView"/>
48 47
 						<string key="NSReuseIdentifierKey">_NS:418</string>
49 48
 						<object class="NSColor" key="IBUIBackgroundColor">
50 49
 							<int key="NSColorSpace">3</int>
@@ -65,7 +64,7 @@
65 64
 					</object>
66 65
 					<object class="IBUISearchBar" id="116007562">
67 66
 						<reference key="NSNextResponder" ref="191373211"/>
68  
-						<int key="NSvFlags">290</int>
  67
+						<int key="NSvFlags">292</int>
69 68
 						<string key="NSFrameSize">{260, 44}</string>
70 69
 						<reference key="NSSuperview" ref="191373211"/>
71 70
 						<reference key="NSWindow"/>
@@ -91,7 +90,6 @@
91 90
 								<string key="NSFrame">{{115, 214}, {91, 31}}</string>
92 91
 								<reference key="NSSuperview" ref="608046358"/>
93 92
 								<reference key="NSWindow"/>
94  
-								<reference key="NSNextKeyView"/>
95 93
 								<string key="NSReuseIdentifierKey">_NS:328</string>
96 94
 								<bool key="IBUIOpaque">NO</bool>
97 95
 								<bool key="IBUIClipsSubviews">YES</bool>
@@ -4679,6 +4677,36 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE</bytes>
4679 4677
 				<object class="IBPartialClassDescription">
4680 4678
 					<string key="className">MenuViewController</string>
4681 4679
 					<string key="superclassName">UIViewController</string>
  4680
+					<object class="NSMutableDictionary" key="actions">
  4681
+						<string key="NS.key.0">slide:</string>
  4682
+						<string key="NS.object.0">id</string>
  4683
+					</object>
  4684
+					<object class="NSMutableDictionary" key="actionInfosByName">
  4685
+						<string key="NS.key.0">slide:</string>
  4686
+						<object class="IBActionInfo" key="NS.object.0">
  4687
+							<string key="name">slide:</string>
  4688
+							<string key="candidateClassName">id</string>
  4689
+						</object>
  4690
+					</object>
  4691
+					<dictionary class="NSMutableDictionary" key="outlets">
  4692
+						<string key="contentView">UIView</string>
  4693
+						<string key="searchBar">UISearchBar</string>
  4694
+						<string key="tableView">UITableView</string>
  4695
+					</dictionary>
  4696
+					<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
  4697
+						<object class="IBToOneOutletInfo" key="contentView">
  4698
+							<string key="name">contentView</string>
  4699
+							<string key="candidateClassName">UIView</string>
  4700
+						</object>
  4701
+						<object class="IBToOneOutletInfo" key="searchBar">
  4702
+							<string key="name">searchBar</string>
  4703
+							<string key="candidateClassName">UISearchBar</string>
  4704
+						</object>
  4705
+						<object class="IBToOneOutletInfo" key="tableView">
  4706
+							<string key="name">tableView</string>
  4707
+							<string key="candidateClassName">UITableView</string>
  4708
+						</object>
  4709
+					</dictionary>
4682 4710
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
4683 4711
 						<string key="majorKey">IBProjectSource</string>
4684 4712
 						<string key="minorKey">./Classes/MenuViewController.h</string>
@@ -4690,6 +4718,6 @@ AAgAAAAIAAIACAACAAAAAgAAAAEAAQABAAE</bytes>
4690 4718
 		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
4691 4719
 		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
4692 4720
 		<int key="IBDocument.defaultPropertyAccessControl">3</int>
4693  
-		<string key="IBCocoaTouchPluginVersion">931</string>
  4721
+		<string key="IBCocoaTouchPluginVersion">933</string>
4694 4722
 	</data>
4695 4723
 </archive>

0 notes on commit 689e35f

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