我正在使用TTLauncherView构建一个视图,但我不希望在图标抖动时使用删除按钮,如何删除它?
发布于 2011-10-27 14:30:01
我刚刚找到了解决方案,只需在- (void)beginEditing方法中进行一些更改:
- (void)beginEditing {
_editing = YES;
_scrollView.delaysContentTouches = YES;
UIView* prompt = [self viewWithTag:kPromptTag];
[prompt removeFromSuperview];
for (NSArray* buttonPage in _buttons) {
for (TTLauncherButton* button in buttonPage) {
button.editing = YES;
button.closeButton.hidden = TRUE;
}
}发布于 2011-10-26 21:46:31
点击图标时,此行为将被切换。如果您根本不想要抖动,只需覆盖以下方法:
- (void)buttonTouchedDown:(TTLauncherButton*)button withEvent:(UIEvent*)event {
/// Do something what should happen
}https://stackoverflow.com/questions/7900705
复制相似问题