/CSNotificationView

iOS-7-style, semi-translucent notification view with blur.

Primary LanguageObjective-CMIT LicenseMIT

#CSNotificationView

Easy to use, iOS-7-style, semi-translucent notification view with blur that drops into UIView and UITableView. Also supports displaying progress.

Requires iOS 7.

   

##Example code

###Fire up quickly

[CSNotificationView showInViewController:self
									style:CSNotificationViewStyleError
								  message:@"A critical error happened."];
									  
[CSNotificationView showInViewController:self
									style:CSNotificationViewStyleSuccess
								  message:@"Great, it works."];
									  
									  

###Activity

CSNotificationView* note = (...);
note.showingActivity = YES;

[note setVisible:YES animated:YES completion:nil];
(...)
[note dismissWithStyle:CSNotificationViewStyleSuccess message:@"Sucess!"
	      duration:kCSNotificationViewDefaultShowDuration animated:YES];

###Customize appearance

####Use your custom image

note.image = [UIImage imageNamed:@"mustache"];

####Flexible with text & no images

[CSNotificationView showInViewController:self
        tintColor:[UIColor colorWithRed:0.000 green:0.6 blue:1.000 alpha:1]
            image:nil
          message:@"No icon and a message that needs two rows and extra \
                    presentation time to be displayed properly."
         duration:5.8f];

##License

See LICENSE.md