Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Oct 11, 2014
1 parent 65a691a commit 18fc6ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#import "JSQMessagesCollectionViewLayoutAttributes.h"
#import "JSQMessagesCollectionViewFlowLayoutInvalidationContext.h"

#import "UIImage+JSQMessages.h"


const CGFloat kJSQMessagesCollectionViewCellLabelHeightDefault = 20.0f;
const CGFloat kJSQMessagesCollectionViewAvatarSizeDefault = 30.0f;

Expand Down Expand Up @@ -74,7 +77,7 @@ - (void)jsq_configureFlowLayout
self.sectionInset = UIEdgeInsetsMake(10.0f, 4.0f, 10.0f, 4.0f);
self.minimumLineSpacing = 4.0f;

_bubbleImageAssetWidth = [UIImage imageNamed:@"bubble_min"].size.width;
_bubbleImageAssetWidth = [UIImage jsq_bubbleCompactImage].size.width;

_messageBubbleSizes = [NSMutableDictionary new];

Expand Down Expand Up @@ -139,9 +142,13 @@ - (void)dealloc

_messageBubbleFont = nil;

[_messageBubbleSizes removeAllObjects];
_messageBubbleSizes = nil;

[_dynamicAnimator removeAllBehaviors];
_dynamicAnimator = nil;

[_visibleIndexPaths removeAllObjects];
_visibleIndexPaths = nil;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ - (void)setMediaView:(UIView *)mediaView
[self.messageBubbleImageView removeFromSuperview];
[self.textView removeFromSuperview];

mediaView.translatesAutoresizingMaskIntoConstraints = NO;
[mediaView setTranslatesAutoresizingMaskIntoConstraints:NO];
mediaView.frame = self.messageBubbleContainerView.bounds;

[self.messageBubbleContainerView addSubview:mediaView];
Expand Down

0 comments on commit 18fc6ec

Please sign in to comment.