TKGallery is a simple iOS photo browser with dynamic grid view of images, TKGallery can display one or more images by providing either UIImage objects. Photos can be zoomed and panned. The browser can also be used to allow the user to share image to social networking sites from main detail image view.
## Requirements ##
-
Xcode 5 and above versions.
-
ARC
## Usage ##
-
Import
TKViewController.h
-
Create Array of Images and alloc TKViewController
NSMutableArray *images = [NSMutableArray array]; [images addObject:[UIImage imageNamed:@"01.png"]]; [images addObject:[UIImage imageNamed:@"02.png"]]; TKViewController *galleryCtrl=[[TKViewController alloc]initWithImages:images]; [self.navigationController pushViewController:galleryCtrl animated:YES];
OR use NSUrls Object
NSMutableArray *images = [NSMutableArray array];
[images addObject:[NSURL URLWithString:@"http://i.imgur.com/NJTm5MI.jpg"]];
[images addObject:[NSURL URLWithString:@"http://i.imgur.com/LVNLuNe.jpg"]];
[images addObject:[NSURL URLWithString:@"http://i.imgur.com/SEZYqn7.jpg"]];
TKViewController *galleryCtrl=[[TKViewController alloc]initWithUrls:images];
[self.navigationController pushViewController:galleryCtrl animated:YES];
TKGallery is available under the MIT license. See the LICENSE file for more info.