Skip to content

Commit

Permalink
Updated for 1.5.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Apr 3, 2012
1 parent 910670a commit 98c557b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion iNotify/iNotify.h
Expand Up @@ -139,7 +139,6 @@ static NSString *const iNotifyMessageMaxVersionKey = @"MaxVersion";
BOOL debug;
id<iNotifyDelegate> __AH_WEAK delegate;
id visibleAlert;
NSString *message;
}
#endif

Expand Down
8 changes: 2 additions & 6 deletions iNotify/iNotify.m
Expand Up @@ -55,7 +55,6 @@ @interface iNotify()
@property (nonatomic, copy) NSDictionary *notificationsDict;
@property (nonatomic, strong) NSError *downloadError;
@property (nonatomic, strong) id visibleAlert;
@property (nonatomic, strong) NSString *message;

@end

Expand All @@ -78,7 +77,6 @@ @implementation iNotify
@synthesize debug;
@synthesize delegate;
@synthesize visibleAlert;
@synthesize message;

+ (iNotify *)sharedInstance
{
Expand Down Expand Up @@ -276,7 +274,6 @@ - (void)dealloc
AH_RELEASE(remindButtonLabel);
AH_RELEASE(defaultActionButtonLabel);
AH_RELEASE(visibleAlert);
AH_RELEASE(message);
AH_SUPER_DEALLOC;
}

Expand Down Expand Up @@ -378,7 +375,7 @@ - (void)downloadedNotificationsData

//get notification details
NSString *title = [notification objectForKey:iNotifyTitleKey];
NSString *_message = [notification objectForKey:iNotifyMessageKey];
NSString *message = [notification objectForKey:iNotifyMessageKey];
NSString *actionURL = [notification objectForKey:iNotifyActionURLKey];
NSString *actionButtonLabel = [notification objectForKey:iNotifyActionButtonKey] ?: defaultActionButtonLabel;

Expand All @@ -393,7 +390,6 @@ - (void)downloadedNotificationsData

if (!visibleAlert)
{
self.message = _message;

#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED

Expand Down Expand Up @@ -529,7 +525,7 @@ - (void)resizeAlert
if ([view isKindOfClass:[UILabel class]])
{
UILabel *label = (UILabel *)view;
if ([label.text isEqualToString:self.message])
if ([label.text isEqualToString:alertView.message])
{
label.alpha = 1.0f;
label.lineBreakMode = UILineBreakModeWordWrap;
Expand Down

0 comments on commit 98c557b

Please sign in to comment.