iosiphonecocoa-touchbuttonttlauncherview

TTLauncherView remove the delete button


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?


Solution

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