【问题标题】:ios hide alert from 3rd party framework/libraryios从第3方框架/库中隐藏警报
【发布时间】:2016-08-12 06:01:46
【问题描述】:

我在我的 ios 应用程序中使用了第 3 方库。我有一个编译文件,即".a" 文件和给我的头文件".h"..

这里的解决方案In Xcode, how to suppress all warnings in specific source files? 谈到点击源文件的Compiler Flags 并设置-w。我相信这与警报无关。 另外,我没有源文件..

所以我的问题是,如何从 3rd 方库中删除/隐藏/禁用 UIAlertView 或 UIAlertController?

有没有办法在info.plistAppDelegate.mXcode 的任何地方设置一些值?

【问题讨论】:

  • UI 警报是指类似于 UIAlertControllers 的东西吗?你没有。 (这与编译器警告有什么关系?)
  • 是.. UIAlertView 或 UIAlertController

标签: ios objective-c iphone xcode ipad


【解决方案1】:

对于使用 libMobileVLCKit 作为其 3rd 方框架的任何人,使用此

 _mediaplayer = [[VLCMediaPlayer alloc] initWithOptions:@[[NSString stringWithFormat:@"--%@=%@",@"extraintf",@""]]];

代替:

 _mediaplayer = [[VLCMediaPlayer alloc] init];

它不会显示您的 VLC 警报,其中包括:

"Your input can't be opened:
VLC is unable to open the MRL 'file:///somefile.mp4'. Check the log for details." 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-16
    • 2015-03-21
    • 1970-01-01
    • 1970-01-01
    • 2014-06-21
    • 1970-01-01
    • 2013-02-10
    相关资源
    最近更新 更多