使用UICollectionViewCompositionalLayout时更新集合视图补充项的高度

时间:2019-08-11 15:35:09

标签: uicollectionview uicollectionviewlayout ios13

在我的应用中,我正在使用带有部分标题的 <ScrollView> <StackLayout> <Frame x:Name="reprint" Padding="40" IsClippedToBounds="False" CornerRadius="4"> <telerikPrimitives:RadBorder BorderThickness="8" CornerRadius="10"> <StackLayout> <Label Text=" Label"></Label> <Label Text="Allows the User to reprint a label."></Label> <telerikInput:RadButton BackgroundColor="#343C41" TextColor="White" Text="Label Reprint" x:Name="btnLabelReprint" Clicked="BtnLabelReprint_Clicked"> </telerikInput:RadButton> </StackLayout> </telerikPrimitives:RadBorder> </Frame> <Frame x:Name="warehouseTransferr" Padding="40" CornerRadius="4"> <telerikPrimitives:RadBorder BorderThickness="8" CornerRadius="10"> <StackLayout> <Label Text="Ware House Transfer"></Label> <Label Text="Allows users to transfer from warehouse to waehouse"></Label> <telerikInput:RadButton BackgroundColor="#343C41" TextColor="White" Text="Warehouse Transfer" x:Name="btnWarehouseTransfe" Clicked="BtnWarehouseTransfe_Clicked"> </telerikInput:RadButton> </StackLayout> </telerikPrimitives:RadBorder> </Frame> </StackLayout> </ScrollView> 。我希望节标题的高度与导航栏的高度匹配。在我创建布局的UICollectionViewCompositionalLayout中,

viewDidLoad

当设备旋转发生变化时(由于导航栏的高度在横向上缩小),如何在不重新创建整个布局的情况下更改节标题的高度?

0 个答案:

没有答案
相关问题