quri / Titanium

View controller transition for image & photo previews
MIT License
40 stars 4 forks source link

Add optional close button #6

Closed dkhamsing closed 10 years ago

dkhamsing commented 10 years ago

Added a close button which is hidden by default. To show it, set the hidden property of closeButton to NO

- (void)showFrenchman {
     ESImageViewController *ivc = [[ESImageViewController alloc] init];
     ivc.closeButton.hidden = NO;
     [ivc setTappedThumbnail:self.extraThumbnail];
     [ivc setImage:self.extraThumbnail.image];
     [self presentViewController:ivc animated:YES completion:nil];