3

I would like to implement a non-blocking, transparent alert in iOS in which I can insert a message, similar to applications such as Tweetbot. Preferably, these alerts should come with a different error and info view and should animate down from the top of the screen. Are there any libraries that I can use which create an alert like this? Many thanks.

shearnonsense
  • 486
  • 3
  • 15

3 Answers3

2

Add a subview that displays your text

- (void) showOverlayMessage
{
    // add subview with animation from top
}

- (void) hideOverlayMessage
{
    // remove subview with animation from top
}

// Call hideOverlayMessage after 1-2 seconds

[self performSelector: @selector(hideOverlayMessage) withObject: nil afterDelay: 2];
greenhorn
  • 1,097
  • 6
  • 10
0

Check out https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets the BlockAlerts are very tweetbot-esque.

Nick
  • 1
0

I personally found the GCDiscreetNotificationView library useful. However, it does not currently support different info and error styles.

shearnonsense
  • 486
  • 3
  • 15