From 61cf7a79aca02a6911759e14ce1b43306f6dc6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=91=E5=B7=9D=E9=81=93=E9=95=BF?= Date: Fri, 5 Aug 2016 21:31:42 +0800 Subject: [PATCH] fix the view size problem --- MTStatusBarOverlay.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MTStatusBarOverlay.m b/MTStatusBarOverlay.m index 6c5d209..7924e9e 100755 --- a/MTStatusBarOverlay.m +++ b/MTStatusBarOverlay.m @@ -279,8 +279,8 @@ @implementation MTStatusBarOverlay #pragma mark Lifecycle //////////////////////////////////////////////////////////////////////// -- (id)initWithFrame:(CGRect)frame { - if ((self = [super initWithFrame:frame])) { +- (id)init { + if ((self = [super init])) { CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame; // only use height of 20px even is status bar is doubled