Quickly and easily add arbitrary views to a sliding pop up.
Grab a tanker
self.imageTanker = [VTATankerView newTanker];
Get 'er shipshape
self.imageTanker.shouldStretchContent = NO;
self.imageTanker.shouldDarkenScreen = YES;
Load 'er up
self.imageTanker.content = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bug-boy"]];
[self.view addSubview:self.imageTanker];
Set Sail
[self.imageTanker show];
You can switch on a swipe mode, which automatically adds a little grabber image to the view and allows the user to pull it up or down manually.
Simply set self.imageTanker.shouldRespondToSwipe = YES
and it takes care of the rest.
I've included a grabber image which you're free to use or you can use your own (just make sure it's called "grabber.png" or "grabber@2x.png" and that it's no more than 20 points [20px or 40px] high).
Just need to include the VTATankerView.h
and VTATankerView.m
files in your project, then include the VTATankerView.h
in your viewController.
Check out the sample project for more details.
MIT License.