2016-08-12 104 views
0

我在我的ios应用程序中使用第三方库。我有一个编译的文件,即".a"文件和头文件给我".h" ..ios隐藏来自第三方框架/库的警报

该解决方案在这里In Xcode, how to suppress all warnings in specific source files?关于点击编译器标志源文件的和设置-w会谈。这与我相信的警报没有任何关系。 此外,我没有与我的源文件..

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

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

+0

用户界面提醒你的意思是类似于UIAlertContr ollers?你没有。 (这和编译器警告有什么关系?) – HAS

+0

是的.. UIAlertView或UIAlertController – Swift

回答

0

对于任何人在那里谁正在使用libMobileVLCKit作为其第三方框架,使用这种

_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."