Skip to content

Commit

Permalink
Fix device rotation not handled when presentationMode is never changed
Browse files Browse the repository at this point in the history
  • Loading branch information
gcamp committed Feb 4, 2013
1 parent 08fb72f commit df88682
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion GCDiscreetNotificationView/GCDiscreetNotificationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ @implementation GCDiscreetNotificationView
#pragma mark -
#pragma mark Init and dealloc

- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
presentationMode = -1;
}
return self;
}

- (id) initWithText:(NSString *)text inView:(UIView *)aView {
return [self initWithText:text showActivity:NO inView:aView];
}
Expand All @@ -55,7 +62,7 @@ - (id)initWithText:(NSString*) text showActivity:(BOOL) activity inView:(UIView*

- (id) initWithText:(NSString *)text showActivity:(BOOL)activity
inPresentationMode:(GCDiscreetNotificationViewPresentationMode)aPresentationMode inView:(UIView *)aView {
if ((self = [super initWithFrame:CGRectZero])) {
if ((self = [self initWithFrame:CGRectZero])) {
self.view = aView;
self.textLabel = text;
self.showActivity = activity;
Expand Down

0 comments on commit df88682

Please sign in to comment.