Adjust chat cell size for iOS7 compatibility.

This commit is contained in:
Guillaume BIENKOWSKI 2013-10-02 14:05:57 +02:00
parent 1d082b4f63
commit 817f9c35b6

View file

@ -64,6 +64,13 @@ static UIFont *CELL_FONT = nil;
[messageImageView addGestureRecognizer:imageTapGestureRecognizer];
[self addSubview:innerView];
[deleteButton setAlpha:0.0f];
// shift message box, otherwise it will collide with the bubble
CGRect messageCoords = [messageText frame];
messageCoords.origin.x += 5;
messageCoords.origin.y += 2;
messageCoords.size.width -= 5;
[messageText setFrame:messageCoords];
}
return self;
}