Closed raulbatista94 closed 6 years ago
Code:
<ScrollView field="entryScrollView" bounces="false" contentInsets="0,1" layout:top="super" layout:fillHorizontally="super" layout:bottom="super" > ... ... </ScrollView>
Error message:
!! Object `<UIScrollView: 0x7faffc157600; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x604000446600>; layer = <CALayer: 0x604000239940>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}>` doesn't respond to selector `contentInsets` to set value `EdgeInsets(top: 1.0, left: 0.0, bottom: 1.0, right: 0.0)`
Full code if you think the problem lies elsewhere:
<ScrollView field="entryScrollView" bounces="false" contentInsets="0,1" layout:top="super" layout:fillHorizontally="super" layout:bottom="super" > <Container layout:id="titleContainer" layout:edges="super" > <ImageView field="titleImageView" contentMode="scaleToFill" layout:top="super" layout:fillHorizontally="super" layout:height="262" image="entryDetailImage" /> <Label field="entryTitle" text="On the Road" font="Heavy@40" textColor="white" layout:top=":lt titleImageView offset(97)" layout:fillHorizontally="super inset(12)"/> <Label field="entryDate" text="Jan. 23, 2018" font="Heavy@30" textColor="white" layout:below="entryTitle offset(10)" layout:fillHorizontally="super inset(12)" /> <ImageView image="profileImage" clipsToBounds="true" layer.cornerRadius="15" layer.borderColor="white" layer.borderWidth="2" layout:size="30" layout:leading="super inset(12)" layout:below="entryDate offset(12)" /> <ImageView image="profileImage" clipsToBounds="true" layer.cornerRadius="15" layer.borderColor="white" layer.borderWidth="2" layout:size="30" layout:leading="super inset(36)" layout:below="entryDate offset(12)" /> <ImageView image="profileImage" clipsToBounds="true" layer.cornerRadius="15" layer.borderColor="white" layer.borderWidth="2" layout:size="30" layout:leading="super inset(60)" layout:below="entryDate offset(12)" /> <Button field="collaboratorsButton" title="+1" titleColor="white" titleLabel.font="Light@15" backgroundColor="#21D439" clipsToBounds="true" layer.cornerRadius="15" layout:leading="super inset(77)" layout:below="entryDate offset(12)" layout:size="30" /> <Component field="mapView" type="MapRootView" layout:fillHorizontally="super inset(13)" layout:below="titleImageView offset(60)" /> <View backgroundColor="#F1483B" layout:height="270" layout:below="mapView offset(30)" layout:fillHorizontally="super inset(12)" layout:bottom="super inset(30)" /> </Container> </ScrollView>
Code:
Error message:
Full code if you think the problem lies elsewhere: