Skip to content

Instantly share code, notes, and snippets.

View tewha's full-sized avatar

Steven Fisher tewha

  • 18:42 (UTC -07:00)
View GitHub Profile
@tewha
tewha / gist:1066123
Created July 5, 2011 22:34
animated error
- (void)showError;
{
dispatch_async( dispatch_get_main_queue(), ^ {
// Setup error view; these values are visible as it slides into place.
_errorView.alpha = finalErrorAlpha;
_errorLabel.text = [_error localizedDescription];
// Slide down the error view, with normal alpha.
[UIView animateWithDuration: slideDownDuration
animations: ^{
CGRect frame = _errorView.frame;