Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

An easy to use pop up UIView with a container to hold any other view.

Notifications You must be signed in to change notification settings

SimonFairbairn/VTATankerView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

VTATankerView

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];

Swipe Option

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 "[email protected]" and that it's no more than 20 points [20px or 40px] high).

Swipe view

Usage

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.

License

MIT License.

Screenshots

Picker view

Image View

About

An easy to use pop up UIView with a container to hold any other view.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published