mirror of
https://github.com/danog/Telegram.git
synced 2024-12-04 10:27:46 +01:00
28 lines
558 B
Objective-C
28 lines
558 B
Objective-C
#import "TGMapView.h"
|
|
|
|
@implementation TGMapView
|
|
|
|
- (void)layoutSubviews
|
|
{
|
|
[super layoutSubviews];
|
|
|
|
if (iosMajorVersion() < 6)
|
|
{
|
|
for (UIView *subview in self.subviews)
|
|
{
|
|
if ([subview isKindOfClass:[UIImageView class]])
|
|
{
|
|
subview.autoresizingMask = 0;
|
|
CGRect frame = subview.frame;
|
|
frame.origin.y = 5;
|
|
frame.origin.x = 5;
|
|
subview.frame = frame;
|
|
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@end
|