Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] fix buildComponent crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Apr 17, 2019
1 parent 975c005 commit 7135fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ - (WXComponent *)_buildComponent:(NSString *)ref
}

Class clazz = NSClassFromString(config.clazz);
WXComponent *component = [clazz alloc];
WXComponent *component = [[clazz alloc] init];
if (component) {
if (renderObject) {
[component _setRenderObject:renderObject];
Expand Down

0 comments on commit 7135fdf

Please sign in to comment.