문제

I am using TTLauncherView to build a view,but I don't want the delete button when the icon is wobbling,how can I remove it?

도움이 되었습니까?

해결책

I found the solution just now,just change something in the - (void)beginEditing method:

- (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;
    }
  }

다른 팁

This bevaviour is toggled when tapping on an icon. If you do not want the wobbling at all just override the following method:

- (void)buttonTouchedDown:(TTLauncherButton*)button withEvent:(UIEvent*)event {
    /// Do something what should happen
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top