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];