Skip to content

iOS. Add subview and let the user throw it away with a swipe.

Notifications You must be signed in to change notification settings

palforsberg/ThrowView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ThrowView

iOS. Add subview and let the user throw it away with a swipe.

Example use

Just add a throwview and then the views that you'd like to throw to that view.

ThrowView *throw = [[ThrowView alloc] initWithFrame:self.view.frame];
throw.throwDelegate = self;
[self.view addSubview:throw];
UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
v.backgroundColor = [UIColor colorWithWhite:0.f alpha:1.f];
v.center = self.view.center;
[throw addSubview:v];

About

iOS. Add subview and let the user throw it away with a swipe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published