Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Better detail view controller layout

  • Loading branch information...
commit 2026628cee12169578d64d4fcdd8d3e505eab15a 1 parent 26eaaba
Cédric Luthi 0xced authored
359 ArtworkDetailViewController.xib
... ... @@ -1,15 +1,11 @@
1 1 <?xml version="1.0" encoding="UTF-8"?>
2   -<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
  2 +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.03">
3 3 <data>
4 4 <int key="IBDocument.SystemTarget">1024</int>
5   - <string key="IBDocument.SystemVersion">10F569</string>
6   - <string key="IBDocument.InterfaceBuilderVersion">788</string>
7   - <string key="IBDocument.AppKitVersion">1038.29</string>
8   - <string key="IBDocument.HIToolboxVersion">461.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">117</string>
12   - </object>
  5 + <string key="IBDocument.SystemVersion">9L30</string>
  6 + <string key="IBDocument.InterfaceBuilderVersion">680</string>
  7 + <string key="IBDocument.AppKitVersion">949.54</string>
  8 + <string key="IBDocument.HIToolboxVersion">353.00</string>
13 9 <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
14 10 <bool key="EncodedWithXMLCoder">YES</bool>
15 11 </object>
@@ -19,7 +15,7 @@
19 15 </object>
20 16 <object class="NSMutableDictionary" key="IBDocument.Metadata">
21 17 <bool key="EncodedWithXMLCoder">YES</bool>
22   - <object class="NSArray" key="dict.sortedKeys" id="0">
  18 + <object class="NSArray" key="dict.sortedKeys">
23 19 <bool key="EncodedWithXMLCoder">YES</bool>
24 20 </object>
25 21 <object class="NSMutableArray" key="dict.values">
@@ -30,32 +26,43 @@
30 26 <bool key="EncodedWithXMLCoder">YES</bool>
31 27 <object class="IBProxyObject" id="841351856">
32 28 <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
33   - <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
34 29 </object>
35 30 <object class="IBProxyObject" id="606714003">
36 31 <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
37   - <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
38 32 </object>
39   - <object class="IBUIImageView" id="907963752">
  33 + <object class="IBUIView" id="200840190">
40 34 <nil key="NSNextResponder"/>
41 35 <int key="NSvFlags">274</int>
42   - <string key="NSFrameSize">{320, 460}</string>
  36 + <object class="NSMutableArray" key="NSSubviews">
  37 + <bool key="EncodedWithXMLCoder">YES</bool>
  38 + <object class="IBUIImageView" id="907963752">
  39 + <reference key="NSNextResponder" ref="200840190"/>
  40 + <int key="NSvFlags">301</int>
  41 + <string key="NSFrame">{{20, 20}, {200, 230}}</string>
  42 + <reference key="NSSuperview" ref="200840190"/>
  43 + <object class="NSColor" key="IBUIBackgroundColor">
  44 + <int key="NSColorSpace">3</int>
  45 + <bytes key="NSWhite">MCAwAA</bytes>
  46 + <object class="NSColorSpace" key="NSCustomColorSpace" id="958714743">
  47 + <int key="NSID">2</int>
  48 + </object>
  49 + </object>
  50 + <bool key="IBUIOpaque">NO</bool>
  51 + <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
  52 + <int key="IBUIContentMode">4</int>
  53 + <bool key="IBUIUserInteractionEnabled">NO</bool>
  54 + </object>
  55 + </object>
  56 + <string key="NSFrame">{{40, -84}, {320, 460}}</string>
43 57 <object class="NSColor" key="IBUIBackgroundColor">
44 58 <int key="NSColorSpace">3</int>
45 59 <bytes key="NSWhite">MC43NQA</bytes>
46   - <object class="NSColorSpace" key="NSCustomColorSpace">
47   - <int key="NSID">2</int>
48   - </object>
  60 + <reference key="NSCustomColorSpace" ref="958714743"/>
49 61 </object>
50   - <bool key="IBUIOpaque">NO</bool>
51 62 <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
52   - <int key="IBUIContentMode">4</int>
53   - <bool key="IBUIUserInteractionEnabled">NO</bool>
54   - <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
55 63 </object>
56 64 <object class="IBUIBarButtonItem" id="715729246">
57 65 <string key="IBUITitle">Save</string>
58   - <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
59 66 <int key="IBUIStyle">1</int>
60 67 </object>
61 68 </object>
@@ -71,20 +78,28 @@
71 78 <int key="connectionID">5</int>
72 79 </object>
73 80 <object class="IBConnectionRecord">
  81 + <object class="IBCocoaTouchEventConnection" key="connection">
  82 + <string key="label">save</string>
  83 + <reference key="source" ref="715729246"/>
  84 + <reference key="destination" ref="841351856"/>
  85 + </object>
  86 + <int key="connectionID">7</int>
  87 + </object>
  88 + <object class="IBConnectionRecord">
74 89 <object class="IBCocoaTouchOutletConnection" key="connection">
75 90 <string key="label">view</string>
76 91 <reference key="source" ref="841351856"/>
77   - <reference key="destination" ref="907963752"/>
  92 + <reference key="destination" ref="200840190"/>
78 93 </object>
79   - <int key="connectionID">6</int>
  94 + <int key="connectionID">9</int>
80 95 </object>
81 96 <object class="IBConnectionRecord">
82   - <object class="IBCocoaTouchEventConnection" key="connection">
83   - <string key="label">save</string>
84   - <reference key="source" ref="715729246"/>
85   - <reference key="destination" ref="841351856"/>
  97 + <object class="IBCocoaTouchOutletConnection" key="connection">
  98 + <string key="label">imageView</string>
  99 + <reference key="source" ref="841351856"/>
  100 + <reference key="destination" ref="907963752"/>
86 101 </object>
87   - <int key="connectionID">7</int>
  102 + <int key="connectionID">10</int>
88 103 </object>
89 104 </object>
90 105 <object class="IBMutableOrderedSet" key="objectRecords">
@@ -92,42 +107,55 @@
92 107 <bool key="EncodedWithXMLCoder">YES</bool>
93 108 <object class="IBObjectRecord">
94 109 <int key="objectID">0</int>
95   - <reference key="object" ref="0"/>
  110 + <object class="NSArray" key="object" id="766608075">
  111 + <bool key="EncodedWithXMLCoder">YES</bool>
  112 + </object>
96 113 <reference key="children" ref="1000"/>
97 114 <nil key="parent"/>
98 115 </object>
99 116 <object class="IBObjectRecord">
100 117 <int key="objectID">-1</int>
101 118 <reference key="object" ref="841351856"/>
102   - <reference key="parent" ref="0"/>
103   - <string key="objectName">File's Owner</string>
  119 + <reference key="parent" ref="766608075"/>
  120 + <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
104 121 </object>
105 122 <object class="IBObjectRecord">
106 123 <int key="objectID">-2</int>
107 124 <reference key="object" ref="606714003"/>
108   - <reference key="parent" ref="0"/>
109   - </object>
110   - <object class="IBObjectRecord">
111   - <int key="objectID">3</int>
112   - <reference key="object" ref="907963752"/>
113   - <reference key="parent" ref="0"/>
  125 + <reference key="parent" ref="766608075"/>
114 126 </object>
115 127 <object class="IBObjectRecord">
116 128 <int key="objectID">4</int>
117 129 <reference key="object" ref="715729246"/>
118   - <reference key="parent" ref="0"/>
  130 + <reference key="parent" ref="766608075"/>
  131 + </object>
  132 + <object class="IBObjectRecord">
  133 + <int key="objectID">8</int>
  134 + <reference key="object" ref="200840190"/>
  135 + <object class="NSMutableArray" key="children">
  136 + <bool key="EncodedWithXMLCoder">YES</bool>
  137 + <reference ref="907963752"/>
  138 + </object>
  139 + <reference key="parent" ref="766608075"/>
  140 + </object>
  141 + <object class="IBObjectRecord">
  142 + <int key="objectID">3</int>
  143 + <reference key="object" ref="907963752"/>
  144 + <reference key="parent" ref="200840190"/>
119 145 </object>
120 146 </object>
121 147 </object>
122 148 <object class="NSMutableDictionary" key="flattenedProperties">
123 149 <bool key="EncodedWithXMLCoder">YES</bool>
124   - <object class="NSArray" key="dict.sortedKeys">
  150 + <object class="NSMutableArray" key="dict.sortedKeys">
125 151 <bool key="EncodedWithXMLCoder">YES</bool>
126 152 <string>-1.CustomClassName</string>
127 153 <string>-2.CustomClassName</string>
128 154 <string>3.IBEditorWindowLastContentRect</string>
129 155 <string>3.IBPluginDependency</string>
130 156 <string>4.IBPluginDependency</string>
  157 + <string>8.IBEditorWindowLastContentRect</string>
  158 + <string>8.IBPluginDependency</string>
131 159 </object>
132 160 <object class="NSMutableArray" key="dict.values">
133 161 <bool key="EncodedWithXMLCoder">YES</bool>
@@ -136,11 +164,15 @@
136 164 <string>{{0, 274}, {320, 460}}</string>
137 165 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
138 166 <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  167 + <string>{{0, 285}, {320, 460}}</string>
  168 + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
139 169 </object>
140 170 </object>
141 171 <object class="NSMutableDictionary" key="unlocalizedProperties">
142 172 <bool key="EncodedWithXMLCoder">YES</bool>
143   - <reference key="dict.sortedKeys" ref="0"/>
  173 + <object class="NSArray" key="dict.sortedKeys">
  174 + <bool key="EncodedWithXMLCoder">YES</bool>
  175 + </object>
144 176 <object class="NSMutableArray" key="dict.values">
145 177 <bool key="EncodedWithXMLCoder">YES</bool>
146 178 </object>
@@ -148,40 +180,37 @@
148 180 <nil key="activeLocalization"/>
149 181 <object class="NSMutableDictionary" key="localizations">
150 182 <bool key="EncodedWithXMLCoder">YES</bool>
151   - <reference key="dict.sortedKeys" ref="0"/>
  183 + <object class="NSArray" key="dict.sortedKeys">
  184 + <bool key="EncodedWithXMLCoder">YES</bool>
  185 + </object>
152 186 <object class="NSMutableArray" key="dict.values">
153 187 <bool key="EncodedWithXMLCoder">YES</bool>
154 188 </object>
155 189 </object>
156 190 <nil key="sourceID"/>
157   - <int key="maxID">7</int>
  191 + <int key="maxID">10</int>
158 192 </object>
159 193 <object class="IBClassDescriber" key="IBDocument.Classes">
160 194 <object class="NSMutableArray" key="referencedPartialClassDescriptions">
161 195 <bool key="EncodedWithXMLCoder">YES</bool>
162 196 <object class="IBPartialClassDescription">
163 197 <string key="className">ArtworkDetailViewController</string>
164   - <string key="superclassName">UITableViewController</string>
  198 + <string key="superclassName">UIViewController</string>
165 199 <object class="NSMutableDictionary" key="actions">
166 200 <string key="NS.key.0">save</string>
167 201 <string key="NS.object.0">id</string>
168 202 </object>
169   - <object class="NSMutableDictionary" key="actionInfosByName">
170   - <string key="NS.key.0">save</string>
171   - <object class="IBActionInfo" key="NS.object.0">
172   - <string key="name">save</string>
173   - <string key="candidateClassName">id</string>
174   - </object>
175   - </object>
176 203 <object class="NSMutableDictionary" key="outlets">
177   - <string key="NS.key.0">saveButton</string>
178   - <string key="NS.object.0">UIBarButtonItem</string>
179   - </object>
180   - <object class="NSMutableDictionary" key="toOneOutletInfosByName">
181   - <string key="NS.key.0">saveButton</string>
182   - <object class="IBToOneOutletInfo" key="NS.object.0">
183   - <string key="name">saveButton</string>
184   - <string key="candidateClassName">UIBarButtonItem</string>
  204 + <bool key="EncodedWithXMLCoder">YES</bool>
  205 + <object class="NSMutableArray" key="dict.sortedKeys">
  206 + <bool key="EncodedWithXMLCoder">YES</bool>
  207 + <string>imageView</string>
  208 + <string>saveButton</string>
  209 + </object>
  210 + <object class="NSMutableArray" key="dict.values">
  211 + <bool key="EncodedWithXMLCoder">YES</bool>
  212 + <string>UIImageView</string>
  213 + <string>UIBarButtonItem</string>
185 214 </object>
186 215 </object>
187 216 <object class="IBClassDescriptionSource" key="sourceIdentifier">
@@ -191,225 +220,17 @@
191 220 </object>
192 221 <object class="IBPartialClassDescription">
193 222 <string key="className">ArtworkDetailViewController</string>
194   - <string key="superclassName">UITableViewController</string>
  223 + <string key="superclassName">UIViewController</string>
195 224 <object class="IBClassDescriptionSource" key="sourceIdentifier">
196 225 <string key="majorKey">IBUserSource</string>
197 226 <string key="minorKey"/>
198 227 </object>
199 228 </object>
200 229 </object>
201   - <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
202   - <bool key="EncodedWithXMLCoder">YES</bool>
203   - <object class="IBPartialClassDescription">
204   - <string key="className">NSObject</string>
205   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
206   - <string key="majorKey">IBFrameworkSource</string>
207   - <string key="minorKey">Foundation.framework/Headers/NSError.h</string>
208   - </object>
209   - </object>
210   - <object class="IBPartialClassDescription">
211   - <string key="className">NSObject</string>
212   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
213   - <string key="majorKey">IBFrameworkSource</string>
214   - <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
215   - </object>
216   - </object>
217   - <object class="IBPartialClassDescription">
218   - <string key="className">NSObject</string>
219   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
220   - <string key="majorKey">IBFrameworkSource</string>
221   - <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
222   - </object>
223   - </object>
224   - <object class="IBPartialClassDescription">
225   - <string key="className">NSObject</string>
226   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
227   - <string key="majorKey">IBFrameworkSource</string>
228   - <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
229   - </object>
230   - </object>
231   - <object class="IBPartialClassDescription">
232   - <string key="className">NSObject</string>
233   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
234   - <string key="majorKey">IBFrameworkSource</string>
235   - <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
236   - </object>
237   - </object>
238   - <object class="IBPartialClassDescription">
239   - <string key="className">NSObject</string>
240   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
241   - <string key="majorKey">IBFrameworkSource</string>
242   - <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
243   - </object>
244   - </object>
245   - <object class="IBPartialClassDescription">
246   - <string key="className">NSObject</string>
247   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
248   - <string key="majorKey">IBFrameworkSource</string>
249   - <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
250   - </object>
251   - </object>
252   - <object class="IBPartialClassDescription">
253   - <string key="className">NSObject</string>
254   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
255   - <string key="majorKey">IBFrameworkSource</string>
256   - <string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
257   - </object>
258   - </object>
259   - <object class="IBPartialClassDescription">
260   - <string key="className">NSObject</string>
261   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
262   - <string key="majorKey">IBFrameworkSource</string>
263   - <string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
264   - </object>
265   - </object>
266   - <object class="IBPartialClassDescription">
267   - <string key="className">NSObject</string>
268   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
269   - <string key="majorKey">IBFrameworkSource</string>
270   - <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
271   - </object>
272   - </object>
273   - <object class="IBPartialClassDescription">
274   - <string key="className">NSObject</string>
275   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
276   - <string key="majorKey">IBFrameworkSource</string>
277   - <string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
278   - </object>
279   - </object>
280   - <object class="IBPartialClassDescription">
281   - <string key="className">NSObject</string>
282   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
283   - <string key="majorKey">IBFrameworkSource</string>
284   - <string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
285   - </object>
286   - </object>
287   - <object class="IBPartialClassDescription">
288   - <string key="className">NSObject</string>
289   - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="842272091">
290   - <string key="majorKey">IBFrameworkSource</string>
291   - <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
292   - </object>
293   - </object>
294   - <object class="IBPartialClassDescription">
295   - <string key="className">UIBarButtonItem</string>
296   - <string key="superclassName">UIBarItem</string>
297   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
298   - <string key="majorKey">IBFrameworkSource</string>
299   - <string key="minorKey">UIKit.framework/Headers/UIBarButtonItem.h</string>
300   - </object>
301   - </object>
302   - <object class="IBPartialClassDescription">
303   - <string key="className">UIBarItem</string>
304   - <string key="superclassName">NSObject</string>
305   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
306   - <string key="majorKey">IBFrameworkSource</string>
307   - <string key="minorKey">UIKit.framework/Headers/UIBarItem.h</string>
308   - </object>
309   - </object>
310   - <object class="IBPartialClassDescription">
311   - <string key="className">UIImageView</string>
312   - <string key="superclassName">UIView</string>
313   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
314   - <string key="majorKey">IBFrameworkSource</string>
315   - <string key="minorKey">UIKit.framework/Headers/UIImageView.h</string>
316   - </object>
317   - </object>
318   - <object class="IBPartialClassDescription">
319   - <string key="className">UIResponder</string>
320   - <string key="superclassName">NSObject</string>
321   - <reference key="sourceIdentifier" ref="842272091"/>
322   - </object>
323   - <object class="IBPartialClassDescription">
324   - <string key="className">UISearchBar</string>
325   - <string key="superclassName">UIView</string>
326   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
327   - <string key="majorKey">IBFrameworkSource</string>
328   - <string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
329   - </object>
330   - </object>
331   - <object class="IBPartialClassDescription">
332   - <string key="className">UISearchDisplayController</string>
333   - <string key="superclassName">NSObject</string>
334   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
335   - <string key="majorKey">IBFrameworkSource</string>
336   - <string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
337   - </object>
338   - </object>
339   - <object class="IBPartialClassDescription">
340   - <string key="className">UITableViewController</string>
341   - <string key="superclassName">UIViewController</string>
342   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
343   - <string key="majorKey">IBFrameworkSource</string>
344   - <string key="minorKey">UIKit.framework/Headers/UITableViewController.h</string>
345   - </object>
346   - </object>
347   - <object class="IBPartialClassDescription">
348   - <string key="className">UIView</string>
349   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
350   - <string key="majorKey">IBFrameworkSource</string>
351   - <string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
352   - </object>
353   - </object>
354   - <object class="IBPartialClassDescription">
355   - <string key="className">UIView</string>
356   - <string key="superclassName">UIResponder</string>
357   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
358   - <string key="majorKey">IBFrameworkSource</string>
359   - <string key="minorKey">UIKit.framework/Headers/UIView.h</string>
360   - </object>
361   - </object>
362   - <object class="IBPartialClassDescription">
363   - <string key="className">UIViewController</string>
364   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
365   - <string key="majorKey">IBFrameworkSource</string>
366   - <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
367   - </object>
368   - </object>
369   - <object class="IBPartialClassDescription">
370   - <string key="className">UIViewController</string>
371   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
372   - <string key="majorKey">IBFrameworkSource</string>
373   - <string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
374   - </object>
375   - </object>
376   - <object class="IBPartialClassDescription">
377   - <string key="className">UIViewController</string>
378   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
379   - <string key="majorKey">IBFrameworkSource</string>
380   - <string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
381   - </object>
382   - </object>
383   - <object class="IBPartialClassDescription">
384   - <string key="className">UIViewController</string>
385   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
386   - <string key="majorKey">IBFrameworkSource</string>
387   - <string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
388   - </object>
389   - </object>
390   - <object class="IBPartialClassDescription">
391   - <string key="className">UIViewController</string>
392   - <string key="superclassName">UIResponder</string>
393   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
394   - <string key="majorKey">IBFrameworkSource</string>
395   - <string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
396   - </object>
397   - </object>
398   - </object>
399 230 </object>
400 231 <int key="IBDocument.localizationMode">0</int>
401   - <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
402   - <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
403   - <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
404   - <integer value="1024" key="NS.object.0"/>
405   - </object>
406   - <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
407   - <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
408   - <integer value="3100" key="NS.object.0"/>
409   - </object>
410   - <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
411 232 <string key="IBDocument.LastKnownRelativeProjectPath">UIKit Artwork Extractor.xcodeproj</string>
412 233 <int key="IBDocument.defaultPropertyAccessControl">3</int>
413   - <string key="IBCocoaTouchPluginVersion">117</string>
  234 + <string key="IBCocoaTouchPluginVersion">3.1</string>
414 235 </data>
415 236 </archive>
2  Classes/ArtworkDetailViewController.h
@@ -11,6 +11,7 @@
11 11 @interface ArtworkDetailViewController : UIViewController
12 12 {
13 13 IBOutlet UIBarButtonItem *saveButton;
  14 + IBOutlet UIImageView *imageView;
14 15
15 16 UIImage *image;
16 17 NSString *name;
@@ -19,6 +20,7 @@
19 20 - (id) initWithImage:(UIImage *)anImage name:(NSString *)aName;
20 21
21 22 @property (nonatomic, retain) IBOutlet UIBarButtonItem *saveButton;
  23 +@property (nonatomic, retain) IBOutlet UIImageView *imageView;
22 24
23 25 - (IBAction) save;
24 26
14 Classes/ArtworkDetailViewController.m
@@ -17,7 +17,7 @@ @interface ArtworkDetailViewController ()
17 17
18 18 @implementation ArtworkDetailViewController
19 19
20   -@synthesize saveButton;
  20 +@synthesize saveButton, imageView;
21 21 @synthesize image;
22 22 @synthesize name;
23 23
@@ -35,6 +35,7 @@ - (id) initWithImage:(UIImage *)anImage name:(NSString *)aName
35 35 - (void) dealloc
36 36 {
37 37 self.saveButton = nil;
  38 + self.imageView = nil;
38 39 self.image = nil;
39 40 self.name = nil;
40 41 [super dealloc];
@@ -43,15 +44,14 @@ - (void) dealloc
43 44 - (void) viewWillAppear:(BOOL)animated
44 45 {
45 46 self.title = [self.name stringByDeletingPathExtension];
  47 +
  48 + self.imageView.image = self.image;
  49 + [self.imageView sizeToFit];
  50 + self.imageView.center = CGPointMake(roundf(self.view.center.x), roundf(self.view.center.y));
46 51 }
47 52
48 53 - (void) viewDidAppear:(BOOL)animated
49   -{
50   - ((UIImageView*)self.view).image = self.image;
51   - [self.view sizeToFit];
52   - CGRect screenBounds = [[UIScreen mainScreen] bounds];
53   - self.view.center = CGPointMake(CGRectGetMidX(screenBounds), CGRectGetMidX(screenBounds));
54   -
  54 +{
55 55 self.navigationController.navigationBar.topItem.rightBarButtonItem = self.saveButton;
56 56 }
57 57

0 comments on commit 2026628

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