feat:fix iOS UIImageView wrapcontent

This commit is contained in:
pengfei.zhou
2019-11-20 13:52:30 +08:00
parent ff0d2d9a13
commit c8feaa37fc
5 changed files with 15 additions and 2 deletions

View File

@@ -153,8 +153,8 @@
E2334AF222E9D2060098A085 /* ViewController.m */,
E2334AF422E9D2060098A085 /* Main.storyboard */,
E2334AF722E9D2070098A085 /* Assets.xcassets */,
E2334AF922E9D2070098A085 /* LaunchScreen.storyboard */,
E2334AFC22E9D2070098A085 /* Info.plist */,
E2334AF922E9D2070098A085 /* LaunchScreen.storyboard */,
E2334AFD22E9D2070098A085 /* main.m */,
D751D19E97EF4EDD7588FEBE /* DemoVC.m */,
D751DDEC114E037231257E64 /* DemoVC.h */,

View File

@@ -34,6 +34,13 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>LSApplicationCategoryType</key>
<string></string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>

View File

@@ -39,6 +39,7 @@ - (instancetype)initWithContext:(DoricContext *)doricContext {
- (void)initWithSuperNode:(DoricSuperNode *)superNode {
[super initWithSuperNode:superNode];
self.reusable = YES;
self.view.clipsToBounds = YES;
}
- (DoricStackView *)build {

View File

@@ -152,4 +152,7 @@ - (void)clearSubModel {
- (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
return nil;
}
- (void)requestLayout {
[self.view setNeedsLayout];
}
@end