diff --git a/README.md b/README.md index f41171f..850899f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ All you need to do is create a notification, give it a view to slide up from, an [_notificationController setNotificationTitle:@"Hello"]; [_notificationController show]; +Or with the convinience constructor: + + SJNotificationViewController* n = [[SJNotificationViewController alloc] initWithParentView:aView title:@"Hello" + level:SJNotificationLevelMessage position:SJNotificationPositionBottom spinner:NO]; + [n show]; + ![](http://www.judoburrito.com/SJNotificationViewController/notification.png) That gives you a basic notification that slides up from the bottom of `aView`. When you want your notification to slide back down, you just call `[notificationController hide]`. Pretty simple, right? diff --git a/SJNotificationViewController.xib b/SJNotificationViewController.xib index aae0d68..4c30262 100644 --- a/SJNotificationViewController.xib +++ b/SJNotificationViewController.xib @@ -1,20 +1,20 @@ - 1280 - 11C74 - 1923 - 1138.23 - 567.00 + 1552 + 11G63 + 3084 + 1138.51 + 569.00 com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 919 + 2083 + IBProxyObject IBUIActivityIndicatorView - IBUIView IBUILabel - IBProxyObject + IBUIView com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -39,7 +39,7 @@ 292 - {{12, 11}, {288, 21}} + {{12, 0}, {288, 44}} @@ -68,15 +68,17 @@ 1 10 + 2 2 - 15 + 14 Helvetica-Bold - 15 + 14 16 + 288 @@ -84,7 +86,6 @@ {{12, 12}, {20, 20}} - _NS:1030 NO IBCocoaTouchFramework @@ -141,8 +142,8 @@ 1 - + @@ -214,6 +215,6 @@ IBCocoaTouchFramework YES 3 - 919 + 2083