// construct the action sheet
self.sheet = [[LTBounceSheet alloc]initWithHeight:250 bgColor:color];
UIButton * option1 = [self produceButtonWithTitle:@"take photo"];
option1.frame=CGRectMake(15, 30, 290, 46);
[self.sheet addView:option1];
UIButton * option2 = [self produceButtonWithTitle:@"choose existing photo"];
option2.frame=CGRectMake(15, 90, 290, 46);
[self.sheet addView:option2];
UIButton * cancel = [self produceButtonWithTitle:@"cancel"];
cancel.frame=CGRectMake(15, 170, 290, 46);
[self.sheet addView:cancel];
//toggle the sheet
[self.sheet toggle];
-
Notifications
You must be signed in to change notification settings - Fork 17
Bounce sheet inspired by http://holko.pl/2014/06/26/recreating-skypes-action-sheet-animation/
ltebean/LTBounceSheet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Bounce sheet inspired by http://holko.pl/2014/06/26/recreating-skypes-action-sheet-animation/
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published