DJComposePageView.m

- (void)deleteInputEmotion {

    // 发通知
    [[NSNotificationCenter defaultCenter] postNotificationName:DJEmotionDidDeletedNotification object:nil];
    

}

DJComposeViewController.m

// 注册监听删除表情通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onReceiveEmotionDidDeletedNotification) name:DJEmotionDidDeletedNotification object:nil];
/** 接收到删除表情通知 */
- (void)onReceiveEmotionDidDeletedNotification {

    [self.textView deleteBackward];

}

最终效果:

新浪微博客户端(49)-删除输入的Emotion表情

 

相关文章:

  • 2021-12-04
  • 2021-12-04
  • 2021-11-21
  • 2021-04-02
  • 2021-04-29
  • 2021-11-21
  • 2021-09-08
猜你喜欢
  • 2021-11-21
  • 2021-11-21
  • 2021-09-08
  • 2021-05-19
  • 2021-11-21
  • 2021-11-21
相关资源
相似解决方案