diff --git a/iOS/Pod/Classes/Shader/DoricTextNode.m b/iOS/Pod/Classes/Shader/DoricTextNode.m index f73e980f..9b54525c 100644 --- a/iOS/Pod/Classes/Shader/DoricTextNode.m +++ b/iOS/Pod/Classes/Shader/DoricTextNode.m @@ -23,10 +23,13 @@ #import "DoricTextNode.h" #import "DoricUtil.h" #import "DoricGroupNode.h" +#import "Doric.h" @implementation DoricTextNode - (UILabel *)build { - return [[UILabel alloc] init]; + return [[[UILabel alloc] init] also:^(UILabel *it) { + it.textAlignment = NSTextAlignmentCenter; + }]; } - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)prop {