CollectionView内容高度大小未在tableView单元格内正确更新

时间:2018-06-14 19:05:31

标签: ios swift uitableview uicollectionview

我在tableView单元格中有一个collectionView。我正在使用自定义flowLayout来自定义collectionView单元格(所有都必须是自定义大小并对齐到左侧)并更新collectionView高度并适合其中的所有元素。

tableView单元格正在自动增长。因此collectionView必须调整内容,tableViewCell必须调整到collectionView。

这是我的tableView单元类,其中包含collectionView配置:

> GST_CAPS
> gstpad.c:2672:gst_pad_get_current_caps:<audioconvert47:src>[00m get
> current pad caps audio/x-raw, rate=(int)16000, channels=(int)1,
> format=(string)S16LE, layout=(string)interleaved basetransform
> gstbasetransform.c:1690:default_prepare_output_buffer:<audioconvert47>[00m
> getting output size for alloc basetransform
> gstbasetransform.c:669:gst_base_transform_transform_size:<audioconvert47>[00m
> asked to transform size 640 for caps audio/x-raw,
> format=(string)S16LE, layout=(string)interleaved, rate=(int)16000,
> channels=(int)2, channel-mask=(bitmask)0x0000000000000003 to size for
> caps audio/x-raw, rate=(int)16000, channels=(int)1,
> format=(string)S16LE, layout=(string)interleaved in direction SINK
> basetransform
> gstbasetransform.c:1851:gst_base_transform_get_unit_size:<audioconvert47>[00m
> returned 4 from first cache pulse
> pulsesrc.c:921:gst_pulsesrc_stream_request_cb:<pulsesrc0>[00m got
> request for length 880 basetransform
> gstbasetransform.c:603:gst_base_transform_default_transform_size:<audioconvert47>[00m
> input size 640, input unit size 4 basetransform
> gstbasetransform.c:1857:gst_base_transform_get_unit_size:<audioconvert47>[00m
> returned 2 from second cached basetransform
> gstbasetransform.c:620:gst_base_transform_default_transform_size:<audioconvert47>[00m
> transformed size to 320 pulse
> pulsesrc.c:1122:gst_pulsesrc_read:<pulsesrc0>[00m have data of 880
> bytes GST_REFCOUNTING gstminiobject.c:440:gst_mini_object_unref:[00m
> 0x1fd4250 unref 4->3 GST_REFCOUNTING
> gstminiobject.c:440:gst_mini_object_unref:[00m 0x2708d90 unref 5->4
> audiosrc gstaudiosrc.c:240:audioringbuffer_thread_func:<pulsesrc0>[00m
> transfered 1764 bytes of 1764 to segment 2 basetransform
> gstbasetransform.c:1702:default_prepare_output_buffer:<audioconvert47>[00m
> doing alloc of size 320 ringbuffer
> gstaudioringbuffer.c:1998:gst_audio_ring_buffer_set_timestamp:<audiosrcringbuffer0>[00m
> Storing timestamp 99:99:99.999999999 @ 2

0 个答案:

没有答案