簡體   English   中英

ios隱藏來自第三方框架/庫的警報

[英]ios hide alert from 3rd party framework/library

我在ios應用程序中使用第3方庫。 我有一個編譯文件,即".a"文件和給我的頭文件".h"

這里的解決方案在Xcode中,如何禁止顯示特定源文件中的所有警告? 討論有關單擊源文件的編譯器標志並設置-w 我認為這與警報無關。 另外,我沒有源文件。

所以我的問題是,如何從第三方庫中刪除/隱藏/禁用UIAlertView或UIAlertController?

有沒有辦法在info.plistAppDelegate.mXcode任何地方設置一些值?

對於使用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." 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM