Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如果UIStatusBarForegroundView被用作字符串,苹果会拒绝该应用程序吗_Ios_Uiapplication_Iphone Privateapi_Uistatusbar - Fatal编程技术网

Ios 如果UIStatusBarForegroundView被用作字符串,苹果会拒绝该应用程序吗

Ios 如果UIStatusBarForegroundView被用作字符串,苹果会拒绝该应用程序吗,ios,uiapplication,iphone-privateapi,uistatusbar,Ios,Uiapplication,Iphone Privateapi,Uistatusbar,在我的应用程序中,当点击状态栏时,我需要触发显示一些自定义视图。我通过对UIApplication子类化找到了获取事件的方法 如果我使用下面的代码,苹果会阻止我的应用程序使用私有API吗 - (void)sendEvent:(UIEvent *)event{ [[event allTouches] enumerateObjectsUsingBlock:^(UITouch * touch,BOOL * stop){ if (touch.tapCount==1 &&a

在我的应用程序中,当点击状态栏时,我需要触发显示一些自定义视图。我通过对UIApplication子类化找到了获取事件的方法

如果我使用下面的代码,苹果会阻止我的应用程序使用私有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的一项功能。为什么你认为这违反了指导原则?我做了更多的研究,但似乎找不到答案,也许你应该直接联系苹果。试试审查委员会:appreview@apple.com这是应用程序审查委员会的电子邮件,你可以向其发送电子邮件,他们会回答。我已经通过电子邮件向他们发送了相同的查询。让我看看是否有答复。我会发布他们回复我的任何邮件。谢谢你的提示。@我只是好奇。。他们答复了吗?