Skip to content

Commit

Permalink
Some changes to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Adonis committed Jun 2, 2016
1 parent 73703fd commit 2200d57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ To show notifications use the following code:
callback:nil];


// Add a button inside the message
// Add an icon image inside the message, appears on the left
[RMessage showNotificationInViewController:self
title:@"Update available"
subtitle:@"Please update the app"
image:nil
iconImage:iconUIImageHere
type:RMessageTypeNormal
customTypeName:nil
duration:RMessageDurationAutomatic
Expand Down Expand Up @@ -122,8 +122,8 @@ You can customize message view elements using UIAppearance
//If you want you can override some properties using UIAppearance
[[RMessageView appearance] setTitleFont:[UIFont boldSystemFontOfSize:6]];
[[RMessageView appearance] setTitleTextColor:[UIColor redColor]];
[[RMessageView appearance] setContentFont:[UIFont boldSystemFontOfSize:10]];
[[RMessageView appearance] setContentTextColor:[UIColor greenColor]];
[[RMessageView appearance] setSubtitleFont:[UIFont boldSystemFontOfSize:10]];
[[RMessageView appearance] setSubtitleTextColor:[UIColor greenColor]];
[[RMessageView appearance] setErrorIcon:[UIImage imageNamed:@"NotificationButtonBackground"]];
[[RMessageView appearance] setSuccessIcon:[UIImage imageNamed:@"NotificationButtonBackground"]];
[[RMessageView appearance] setMessageIcon:[UIImage imageNamed:@"NotificationButtonBackground"]];
Expand All @@ -139,7 +139,7 @@ The following properties can be set when creating a new notification:
* **viewController**: The view controller to show the notification in. This might be the navigation controller.
* **title**: The title of the notification view
* **subtitle**: The text that is displayed underneath the title (optional)
* **image**: A custom icon image that is used instead of the default one (optional)
* **iconImage**: A custom icon image that is used instead of the default one (optional)
* **type**: The notification type (Message, Warning, Error, Success, Custom)
* **duration**: The duration the notification should be displayed
* **callback**: The block that should be executed, when the user dismissed the message by tapping on it or swiping it to the top.
Expand Down

0 comments on commit 2200d57

Please sign in to comment.