TTPhotoViewController Class Reference

Inheritance diagram for TTPhotoViewController:
TTModelViewController <TTScrollViewDelegate> <TTScrollViewDataSource> <TTThumbsViewControllerDelegate> TTViewController <TTModelDelegate> TTNavigatorViewController TTBaseViewController UIViewController

List of all members.

Public Member Functions

(id) - initWithPhoto:
(id) - initWithPhotoSource:
(TTPhotoView *) - createPhotoView
 Creates a photo view for a new page.
(TTThumbsViewController *) - createThumbsViewController
 Creates the thumbnail controller used by the "See All" button.
(void) - didMoveToPhoto:fromPhoto:
 Sent to the controller after it moves from one photo to another.
(void) - showActivity:
 Shows or hides an activity label on top of the photo.

Properties

id< TTPhotocenterPhoto
 The photo that is currently visible and centered.
NSInteger centerPhotoIndex
 The index of the currently visible photo.
UIImagedefaultImage
 The default image to show before a photo has been loaded.
TTStylecaptionStyle
 The style to use for the caption label.

Member Function Documentation

- (TTPhotoView *) createPhotoView  

Creates a photo view for a new page.

Do not call this directly. It is meant to be overriden by subclasses.

- (TTThumbsViewController *) createThumbsViewController  

Creates the thumbnail controller used by the "See All" button.

Do not call this directly. It is meant to be overriden by subclasses.


Property Documentation

- (id<TTPhoto>) centerPhoto [read, write, retain]

The photo that is currently visible and centered.

You can assign this directly to change the photoSource to the one that contains the photo.

- (NSInteger) centerPhotoIndex [read, assign]

The index of the currently visible photo.

Because centerPhoto can be nil while waiting for the source to load the photo, this property must be maintained even though centerPhoto has its own index property.


The documentation for this class was generated from the following files:
blog comments powered by Disqus