From 68a5f63f36eec0e6f1ed5a4e71739cbd8ae34be7 Mon Sep 17 00:00:00 2001 From: Linux-cpp-lisp Date: Sun, 21 Jul 2013 10:59:05 -0600 Subject: [PATCH 1/2] Added convinience constructor to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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? From 25c81956b96dd49c0173073280672f87f4a1fd05 Mon Sep 17 00:00:00 2001 From: A M Date: Fri, 26 Jul 2013 16:43:37 -0600 Subject: [PATCH 2/2] Modified to allow multiple line messages --- SJNotificationViewController.xib | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) 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