[英]Non-modal transparent informative alert in iOS
我想在iOS中實現一個非阻塞,透明的警報,我可以在其中插入一條消息,類似於Tweetbot等應用程序。 優選地,這些警報應該具有不同的錯誤和信息視圖,並且應該從屏幕頂部向下設置動畫。 我可以使用哪些庫創建這樣的警報? 非常感謝。
添加顯示文本的子視圖
- (void) showOverlayMessage
{
// add subview with animation from top
}
- (void) hideOverlayMessage
{
// remove subview with animation from top
}
// 1-2秒后調用hideOverlayMessage
[self performSelector: @selector(hideOverlayMessage) withObject: nil afterDelay: 2];
查看https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets BlockAlerts非常推特。
我個人發現GCDiscreetNotificationView庫很有用。 但是,它目前不支持不同的信息和錯誤樣式。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.