[关闭]
@keenleung 2016-04-10T04:43:25.000000Z 字数 266 阅读 1494
  1. /**
  2. * 可以在这个AppDelegate方法中监听到状态栏的点击
  3. */
  4. - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
  5. {
  6. // 防止事件的传递过程中, 某些控制器的点击事件传递到 AppDelegate 中
  7. if ([touches.anyObject locationInView:nil].y > 20) return;
  8. NSLog(@"点击了状态栏")
  9. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注