This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
interface_n_i_photo_album_scroll_view.html
432 lines (378 loc) · 24.7 KB
/
interface_n_i_photo_album_scroll_view.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nimbus: NIPhotoAlbumScrollView Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24278774-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="page">
<div style="position:relative">
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<a style="float: right;margin-right:20px;margin-top:20px" href='http://www.pledgie.com/campaigns/15519'><img alt='Click here to support Nimbus development and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/15519.png?skin_name=chrome' border='0' /></a>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Nimbus
 <span id="projectnumber">0.6.1 - <a href="http://github.com/jverkoey/nimbus">Nimbus is proudly hosted on Github</a></span>
</div>
<div id="projectbrief">An iOS framework whose growth is bounded by O(documentation).</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.4-20110629 -->
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
initNavTree('interface_n_i_photo_album_scroll_view.html','');
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NIPhotoAlbumScrollView Class Reference<div class="ingroups"><a class="el" href="group___photos-_views.html">Photo Views</a></div></div> </div>
</div>
<div class="contents">
<!-- doxytag: class="NIPhotoAlbumScrollView" --><!-- doxytag: inherits="NIPhotoScrollViewDelegate-p" --><hr/><a name="details" id="details"></a><h2>Overview</h2>
<div class="textblock"><p>A paged scroll view that shows a collection of photos. </p>
<p>This view provides a light-weight implementation of a photo viewer, complete with pinch-to-zoom and swiping to change photos. It is designed to perform well with large sets of photos and large images that are loaded from either the network or disk.</p>
<p>It is intended for this view to be used in conjunction with a view controller that implements the data source protocol and presents any required chrome.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interface_n_i_toolbar_photo_view_controller.html" title="A simple photo album view controller implementation with a toolbar.">NIToolbarPhotoViewController</a> </dd></dl>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00050">50</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div><div class="dynheader">
Inheritance diagram for NIPhotoAlbumScrollView:</div>
<div class="dyncontent">
<div class="center">
<img src="interface_n_i_photo_album_scroll_view.png" usemap="#NIPhotoAlbumScrollView_map" alt=""/>
<map id="NIPhotoAlbumScrollView_map" name="NIPhotoAlbumScrollView_map">
<area href="protocol_n_i_photo_scroll_view_delegate-p.html" title="The photo scroll view delegate." alt="<NIPhotoScrollViewDelegate>" shape="rect" coords="0,0,181,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Configuring Functionality</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#a2990185ef87b7bb83475119e6f6f73fa">zoomingIsEnabled</a> <span class="suffix">property</span></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#ae19d7850f86f8bf602daed50758f8d6b">zoomingAboveOriginalSizeIsEnabled</a> <span class="suffix">property</span></td></tr>
<tr><td colspan="2"><div class="groupHeader">Data Source</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">id<br class="typebreak"/>
< <a class="el" href="protocol_n_i_photo_album_scroll_view_data_source-p.html">NIPhotoAlbumScrollViewDataSource</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#a763ac9859c692caac4232135ce22792d">dataSource</a> <span class="suffix">property</span></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a499e3a1855ebae051598afde7fdc2c3c">reloadData</a></td></tr>
<tr><td colspan="2"><div class="groupHeader">Delegate</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">id<br class="typebreak"/>
< <a class="el" href="protocol_n_i_photo_album_scroll_view_delegate-p.html">NIPhotoAlbumScrollViewDelegate</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#a992a9408b06190db98f14da4071fe4f4">delegate</a> <span class="suffix">property</span></td></tr>
<tr><td colspan="2"><div class="groupHeader">Configuring Presentation</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">UIImage * </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#a5efc3ce3a183043fe3d6341ae82908cc">loadingImage</a> <span class="suffix">property</span></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CGFloat </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#affaad3ec044e3e8f354271a81d723f19">pageHorizontalMargin</a> <span class="suffix">property</span></td></tr>
<tr><td colspan="2"><div class="groupHeader">State</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NSInteger </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#a8194b80d5c631a5912c6d105a5000ea7">centerPhotoIndex</a> <span class="suffix">property</span></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NSInteger </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_n_i_photo_album_scroll_view.html#aa6f3fca130a6cb8358fde37e33a28fe2">numberOfPhotos</a> <span class="suffix">property</span></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3f8d6526d57a471cbc2579b0cd097a8e"></a><!-- doxytag: member="NIPhotoAlbumScrollView::setCenterPhotoIndex:animated:" ref="a3f8d6526d57a471cbc2579b0cd097a8e" args="(NSInteger centerPhotoIndex,[animated] BOOL animated)" -->
(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a3f8d6526d57a471cbc2579b0cd097a8e">setCenterPhotoIndex:animated:</a></td></tr>
<tr><td colspan="2"><div class="groupHeader">Changing the Visible Photo</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e3b947a25bec57aed70afb27d809471"></a><!-- doxytag: member="NIPhotoAlbumScrollView::hasNext" ref="a3e3b947a25bec57aed70afb27d809471" args="()" -->
(BOOL) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a3e3b947a25bec57aed70afb27d809471">hasNext</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ce7a3118a9b14539afffa572f75a434"></a><!-- doxytag: member="NIPhotoAlbumScrollView::hasPrevious" ref="a5ce7a3118a9b14539afffa572f75a434" args="()" -->
(BOOL) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a5ce7a3118a9b14539afffa572f75a434">hasPrevious</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d6595ba06e27bd5b24868c4fffd6f41"></a><!-- doxytag: member="NIPhotoAlbumScrollView::moveToNextAnimated:" ref="a7d6595ba06e27bd5b24868c4fffd6f41" args="(BOOL animated)" -->
(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a7d6595ba06e27bd5b24868c4fffd6f41">moveToNextAnimated:</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56349352b0b9a6a045727c0745397a5e"></a><!-- doxytag: member="NIPhotoAlbumScrollView::moveToPreviousAnimated:" ref="a56349352b0b9a6a045727c0745397a5e" args="(BOOL animated)" -->
(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a56349352b0b9a6a045727c0745397a5e">moveToPreviousAnimated:</a></td></tr>
<tr><td colspan="2"><div class="groupHeader">Notifying the View of Loaded Photos</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a8b53749aec990645b6502376cd41558c">didLoadPhoto:atIndex:photoSize:</a></td></tr>
<tr><td colspan="2"><div class="groupHeader">Rotating the Scroll View</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#ad8c49847a8e40845c7568c66c6d03cc5">willRotateToInterfaceOrientation:duration:</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8fc80777983d64c632b64ac32d03eb49"></a><!-- doxytag: member="NIPhotoAlbumScrollView::willAnimateRotationToInterfaceOrientation:duration:" ref="a8fc80777983d64c632b64ac32d03eb49" args="(UIInterfaceOrientation toInterfaceOrientation,[duration] NSTimeInterval duration)" -->
(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_n_i_photo_album_scroll_view.html#a8fc80777983d64c632b64ac32d03eb49">willAnimateRotationToInterfaceOrientation:duration:</a></td></tr>
<tr><td colspan="2"><div class="groupHeader">[NIPhotoScrollViewDelegate] Zooming</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_n_i_photo_scroll_view_delegate-p.html#ad4b3ef423033107ed51c0b41890f698f">photoScrollViewDidDoubleTapToZoom:didZoomIn:</a></td></tr>
</table>
<hr/><h2>Method Documentation</h2>
<a class="anchor" id="a2990185ef87b7bb83475119e6f6f73fa"></a><!-- doxytag: member="NIPhotoAlbumScrollView::zoomingIsEnabled" ref="a2990185ef87b7bb83475119e6f6f73fa" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (BOOL) zoomingIsEnabled<code> [read, write, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Whether zooming is enabled or not. </p>
<p>Regardless of whether this is enabled, only original-sized images will be zoomable. This is because we often don't know how large the final image is so we can't calculate min and max zoom amounts correctly.</p>
<p>By default this is YES. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00092">92</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="ae19d7850f86f8bf602daed50758f8d6b"></a><!-- doxytag: member="NIPhotoAlbumScrollView::zoomingAboveOriginalSizeIsEnabled" ref="ae19d7850f86f8bf602daed50758f8d6b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (BOOL) zoomingAboveOriginalSizeIsEnabled<code> [read, write, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Whether small photos can be zoomed at least until they fit the screen. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interface_n_i_photo_scroll_view.html#a3373a0ada0a8496c6eabbb8564da5956" title="Whether small photos can be zoomed at least until they fit the screen.">NIPhotoScrollView::zoomingAboveOriginalSizeIsEnabled</a></dd></dl>
<p>By default this is YES. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00101">101</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="a763ac9859c692caac4232135ce22792d"></a><!-- doxytag: member="NIPhotoAlbumScrollView::dataSource" ref="a763ac9859c692caac4232135ce22792d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (id<<a class="el" href="protocol_n_i_photo_album_scroll_view_data_source-p.html">NIPhotoAlbumScrollViewDataSource</a>>) dataSource<code> [read, write, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The data source for this photo album view. </p>
<p>This is the only means by which this photo album view acquires any information about the album to be displayed. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00112">112</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="a992a9408b06190db98f14da4071fe4f4"></a><!-- doxytag: member="NIPhotoAlbumScrollView::delegate" ref="a992a9408b06190db98f14da4071fe4f4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (id<<a class="el" href="protocol_n_i_photo_album_scroll_view_delegate-p.html">NIPhotoAlbumScrollViewDelegate</a>>) delegate<code> [read, write, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The delegate for this photo album view. </p>
<p>Any user interactions or state changes are sent to the delegate through this property. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00133">133</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5efc3ce3a183043fe3d6341ae82908cc"></a><!-- doxytag: member="NIPhotoAlbumScrollView::loadingImage" ref="a5efc3ce3a183043fe3d6341ae82908cc" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (UIImage*) loadingImage<code> [read, write, retain]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>An image that is displayed while the photo is loading. </p>
<p>This photo will be presented if no image is returned in the data source's implementation of photoAlbumScrollView:photoAtIndex:photoSize:isLoading:.</p>
<p>Zooming is disabled when showing a loading image, regardless of the state of zoomingIsEnabled.</p>
<p>By default this is nil. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00148">148</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="affaad3ec044e3e8f354271a81d723f19"></a><!-- doxytag: member="NIPhotoAlbumScrollView::pageHorizontalMargin" ref="affaad3ec044e3e8f354271a81d723f19" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (CGFloat) pageHorizontalMargin<code> [read, write, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The number of pixels on either side of each photo page. </p>
<p>The space between each photo will be 2x this value.</p>
<p>By default this is NIPhotoAlbumScrollViewDefaultPageHorizontalMargin. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00157">157</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="a8194b80d5c631a5912c6d105a5000ea7"></a><!-- doxytag: member="NIPhotoAlbumScrollView::centerPhotoIndex" ref="a8194b80d5c631a5912c6d105a5000ea7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (NSInteger) centerPhotoIndex<code> [read, write, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The current center photo index. </p>
<p>This is a zero-based value. If you intend to use this in a label such as "photo ## of n" be sure to add one to this value.</p>
<p>Setting this value directly will do so without animation. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00170">170</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="aa6f3fca130a6cb8358fde37e33a28fe2"></a><!-- doxytag: member="NIPhotoAlbumScrollView::numberOfPhotos" ref="aa6f3fca130a6cb8358fde37e33a28fe2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (NSInteger) numberOfPhotos<code> [read, assign]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The total number of photos in this photo album view, as gathered from the data source. </p>
<p>This value is cached after reloadData has been called.</p>
<p>Until reloadData is called the first time, numberOfPhotos will be NIPhotoAlbumScrollViewUnknownNumberOfPhotos. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html#l00185">185</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8h_source.html">NIPhotoAlbumScrollView.h</a>.</p>
</div>
</div>
<a class="anchor" id="a499e3a1855ebae051598afde7fdc2c3c"></a><!-- doxytag: member="NIPhotoAlbumScrollView::reloadData" ref="a499e3a1855ebae051598afde7fdc2c3c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (void) reloadData </td>
<td></td>
<td class="paramname"></td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Force the view to reload its data by asking the data source for information. </p>
<p>This must be called at least once after dataSource has been set in order for the view to gather any presentable information.</p>
<p>This method is expensive. It will reset the state of the view and remove all existing pages before requesting the new information from the data source. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8m_source.html#l00413">413</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8m_source.html">NIPhotoAlbumScrollView.m</a>.</p>
</div>
</div>
<a class="anchor" id="a8b53749aec990645b6502376cd41558c"></a><!-- doxytag: member="NIPhotoAlbumScrollView::didLoadPhoto:atIndex:photoSize:" ref="a8b53749aec990645b6502376cd41558c" args="(UIImage *image,[atIndex] NSInteger photoIndex,[photoSize] NIPhotoScrollViewPhotoSize photoSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (void) didLoadPhoto: </td>
<td></td>
<td class="paramtype">(UIImage *) </td>
<td class="paramname"><em>image</em></td>
</tr>
<tr>
<td class="paramkey">atIndex:</td>
<td></td>
<td class="paramtype">(NSInteger) </td>
<td class="paramname"><em>photoIndex</em></td>
</tr>
<tr>
<td class="paramkey">photoSize:</td>
<td></td>
<td class="paramtype">(NIPhotoScrollViewPhotoSize) </td>
<td class="paramname"><em>photoSize</em> </td>
</tr>
<tr>
<td></td>
<td></td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Notify the scroll view that a photo has been loaded at a given index. </p>
<p>You should notify the completed loading of thumbnails as well. Calling this method is fairly lightweight and will only update the images of the visible pages. Err on the side of calling this method too much rather than too little.</p>
<p>The photo at the given index will only be replaced with the given image if photoSize is of a higher quality than the currently-displayed photo's size. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8m_source.html#l00452">452</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8m_source.html">NIPhotoAlbumScrollView.m</a>.</p>
</div>
</div>
<a class="anchor" id="ad8c49847a8e40845c7568c66c6d03cc5"></a><!-- doxytag: member="NIPhotoAlbumScrollView::willRotateToInterfaceOrientation:duration:" ref="ad8c49847a8e40845c7568c66c6d03cc5" args="(UIInterfaceOrientation toInterfaceOrientation,[duration] NSTimeInterval duration)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (void) willRotateToInterfaceOrientation: </td>
<td></td>
<td class="paramtype">(UIInterfaceOrientation) </td>
<td class="paramname"><em>toInterfaceOrientation</em></td>
</tr>
<tr>
<td class="paramkey">duration:</td>
<td></td>
<td class="paramtype">(NSTimeInterval) </td>
<td class="paramname"><em>duration</em> </td>
</tr>
<tr>
<td></td>
<td></td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Stores the current state of the scroll view in preparation for rotation. </p>
<p>This must be called in conjunction with willAnimateRotationToInterfaceOrientation:duration: in the methods by the same name from the view controller containing this view. </p>
<p>Definition at line <a class="el" href="_n_i_photo_album_scroll_view_8m_source.html#l00477">477</a> of file <a class="el" href="_n_i_photo_album_scroll_view_8m_source.html">NIPhotoAlbumScrollView.m</a>.</p>
</div>
</div>
<a class="anchor" id="ad4b3ef423033107ed51c0b41890f698f"></a><!-- doxytag: member="NIPhotoAlbumScrollView::photoScrollViewDidDoubleTapToZoom:didZoomIn:" ref="ad4b3ef423033107ed51c0b41890f698f" args="(NIPhotoScrollView *photoScrollView,[didZoomIn] BOOL didZoomIn)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">- (void) photoScrollViewDidDoubleTapToZoom: </td>
<td></td>
<td class="paramtype">(<a class="el" href="interface_n_i_photo_scroll_view.html">NIPhotoScrollView</a> *) </td>
<td class="paramname"><em>photoScrollView</em></td>
</tr>
<tr>
<td class="paramkey">didZoomIn:</td>
<td></td>
<td class="paramtype">(BOOL) </td>
<td class="paramname"><em>didZoomIn</em> </td>
</tr>
<tr>
<td></td>
<td></td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The user has double-tapped the photo to zoom either in or out. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">photoScrollView</td><td>The photo scroll view that was tapped. </td></tr>
<tr><td class="paramname">didZoomIn</td><td>YES if the photo was zoomed in. NO if the photo was zoomed out. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="interface_n_i_photo_album_scroll_view.html">NIPhotoAlbumScrollView</a> </li>
</div><!-- .fixedwidth -->
<span class="footer">Generated for Nimbus by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4-20110629 </span>
</ul>
</div>
</div> <!-- page -->
</body>
</html>