3
在我的應用我都需要觸發時顯示狀態欄被竊聽了一些自定義視圖。我想通過繼承UIApplication來獲得事件的方式。將蘋果拒絕的應用程序,如果UIStatusBarForegroundView作爲字符串
如果我使用下面的代碼將蘋果阻止我的私有API使用的應用程序?
- (void)sendEvent:(UIEvent *)event{
[[event allTouches] enumerateObjectsUsingBlock:^(UITouch * touch,BOOL * stop){
if (touch.tapCount==1 && touch.phase==UITouchPhaseEnded) {
NSString * touchedViewClassName = NSStringFromClass([touch.view class]);
if ([touchedViewClassName isEqualToString:@"UIStatusBarForegroundView"]) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"StatusBarTapped" object:nil];
}
}
}];
[super sendEvent:event];
}
請諮詢......
當我有兩個的tableview我想控制哪一個滾動時,狀態欄被竊聽到頂部。這種滾動到頂部已經是iOS的一項功能。你爲什麼認爲這是違反準則? – imthi 2012-03-23 06:52:38
我做了一些更多的研究,但我似乎無法找到答案,也許你應該直接聯繫蘋果。試試審查委員會: – MCKapur 2012-03-23 13:21:47
[email protected] 這是應用程序審查委員會的郵件,你可以把它的電子郵件,他們會回答 – MCKapur 2012-03-23 13:22:21