From 78174bea4afb50917c546d8e2f1f0971d9c8b828 Mon Sep 17 00:00:00 2001 From: zhenglibao Date: Wed, 20 Feb 2019 10:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dflexxmlbaseview=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ FlexLib.podspec | 2 +- FlexLib/Classes/FlexXmlBaseView.m | 17 ----------------- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78b7372..c342681 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ **FlexLib**的所有版本的变更日志都将会在这里记录. --- +## 2.2.2 +修复FlexXmlBaseView的bug + ## 2.2.1 1. UILabel的富文本支持国际化 2. FlexXmlBaseView增加代码创建方式 diff --git a/FlexLib.podspec b/FlexLib.podspec index cd56a5e..ff1c9e3 100644 --- a/FlexLib.podspec +++ b/FlexLib.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'FlexLib' - s.version = '2.2.1' + s.version = '2.2.2' s.summary = 'An obj-c flex layout framework for IOS' # This description is used to generate tags and improve search results. diff --git a/FlexLib/Classes/FlexXmlBaseView.m b/FlexLib/Classes/FlexXmlBaseView.m index b71b04d..875b142 100644 --- a/FlexLib/Classes/FlexXmlBaseView.m +++ b/FlexLib/Classes/FlexXmlBaseView.m @@ -30,23 +30,6 @@ - (instancetype)init return self; } -- (instancetype)initWithFrame:(CGRect)frame -{ - self = [super initWithFrame:frame]; - if (self) { - NSAssert(NO, @"Flexbox: the derived class of FlexXmlBaseView should be used only in xml"); - } - return self; -} -- (instancetype)initWithCoder:(NSCoder *)coder -{ - self = [super initWithCoder:coder]; - if (self) { - NSAssert(NO, @"Flexbox: the derived class of FlexXmlBaseView should be used only in xml"); - } - return self; -} - -(instancetype)initWithRootView:(FlexRootView*)rootview { self = [self init];