josshad / EHPlainAlert

Plain style IOS alert
MIT License
46 stars 18 forks source link

number of alerts #9

Open alejandrorbradford opened 7 years ago

alejandrorbradford commented 7 years ago

is there a way to set up a maximum number of alerts that can be displayed at once?

josshad commented 7 years ago
  /*!
  * @brief change maximum number of alerts on screen
  *
  * @param numberOfAlerts Number of alertviews. Default is 3
  */
  + (void)updateNumberOfAlerts:(NSInteger)numberOfAlerts;
alejandrorbradford commented 7 years ago

I'm getting like 5 alerts simultaneusly and they are taking up the whole screen and I'm not setting the number of alerts anywhere.

alejandrorbradford commented 7 years ago

Is there a way to remove all alerts from the screen?

josshad commented 7 years ago

Ok. I understodd what the problem is. I will see how to fix that..

Also yyou can hide alerts with:

/*!
 * @brief hide all alerts
 *
 * @param animated use animation
 */
+(void)hideAll:(BOOL)animated;