mirror of
https://github.com/danog/Telegram.git
synced 2024-12-04 10:27:46 +01:00
33 lines
696 B
Mathematica
33 lines
696 B
Mathematica
|
//
|
||
|
// GDImageCell.m
|
||
|
// GDFileManagerExample
|
||
|
//
|
||
|
// Created by Graham Dennis on 2/03/13.
|
||
|
// Copyright (c) 2013 Graham Dennis. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "GDImageCell.h"
|
||
|
|
||
|
@implementation GDImageCell
|
||
|
|
||
|
#define BORDER_WIDTH 20.0
|
||
|
|
||
|
- (void)awakeFromNib
|
||
|
{
|
||
|
[super awakeFromNib];
|
||
|
|
||
|
self.contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||
|
}
|
||
|
|
||
|
- (void)layoutSubviews
|
||
|
{
|
||
|
[super layoutSubviews];
|
||
|
|
||
|
CGRect imageFrame = CGRectInset(self.contentView.bounds, BORDER_WIDTH, 0.0);
|
||
|
self.imageView.frame = imageFrame;
|
||
|
self.imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
|
||
|
|
||
|
}
|
||
|
|
||
|
@end
|