【发布时间】:2015-12-07 00:15:21
【问题描述】:
请帮助我了解浮动按钮动画在 UITableViewController 中无法正常工作。下面我附上了视频和代码以便更好地理解,我使用这个库作为浮动按钮https://github.com/gizmoboy7/VCFloatingActionButton:
视频: https://youtu.be/m-ivFXjXLOM
代码:
CGRect floatButtonFrame = CGRectMake([UIScreen mainScreen].bounds.size.width - 44 - 20, [UIScreen mainScreen].bounds.size.height - 44 - 20, 44, 44);
floatingButton = [[VCFloatingActionButton alloc] initWithFrame:floatButtonFrame normalImage:[UIImage imageNamed:@"plus"] andPressedImage:[UIImage imageNamed:@"cross"] withScrollview:self.aktivitiTableView];
floatingButton.imageArray = @[@"fb-icon",@"twitter-icon",@"google-icon",@"linkedin-icon"];
floatingButton.labelArray = @[@"Facebook",@"Twitter",@"Google Plus",@"Linked in"];
floatingButton.hideWhileScrolling = NO;
floatingButton.delegate = self;
[self.aktivitiTableView addSubview:floatingButton];
提前谢谢你。
【问题讨论】:
标签: ios objective-c uitableview