An iPad application we are building throws an alert window for various error conditions. We are considering building a custom UI for the alerts since the default alert window is fairly annoying. My question is, how do you stack the alerts? For example if 2 parts of the app throw 2 different alerts, whats the best way to show that 2 things went wrong. One thought is to only show the first error that happened. Another is to show the alerts one after the other, so the user is made to click "ok" twice. Another is something like "2 things went wrong:here is 1 and here is another" but the problem there is error 2 may happen after error 1 but before the user has had an option to dismiss alert 1.

Has anyone seen any good UI pattern for grouping multiple alert messages?