@keenleung
2016-04-10T04:43:25.000000Z
字数 266
阅读 2008
注意点:
做法:
/*** 可以在这个AppDelegate方法中监听到状态栏的点击*/- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{// 防止事件的传递过程中, 某些控制器的点击事件传递到 AppDelegate 中if ([touches.anyObject locationInView:nil].y > 20) return;NSLog(@"点击了状态栏")}