我正在创建一个手表应用程序,我的拣货员有问题。
我希望有一些并排水平的拾音器:
<!--Page1-->
<scene sceneID="db6-OT-aHK">
<objects>
<controller identifier="Page1" id="U48-q0-PUn" customClass="Page1" customModule="swiftTest_WatchKit_Extension">
<items>
<group width="1" alignment="center" verticalAlignment="center" id="tfC-gp-OjA">
<items>
<picker width="0.33000000000000002" height="100" alignment="center" verticalAlignment="center" id="5k4-Oj-Imh"/>
<picker width="0.33000000000000002" height="100" alignment="center" verticalAlignment="center" id="CWU-iM-QA5"/>
<picker width="0.33000000000000002" height="100" alignment="center" verticalAlignment="center" id="7EB-A5-pKO"/>
</items>
</group>
<group width="1" alignment="left" verticalAlignment="bottom" id="nmP-yl-udb">
<items>
<button width="1" alignment="left" title="Button" id="rSf-z8-JuU"/>
</items>
</group>
</items>
<connections>
<outlet property="goButton" destination="rSf-z8-JuU" id="FMh-MS-VME"/>
<outlet property="picker1" destination="5k4-Oj-Imh" id="Y6q-wM-MPf"/>
<outlet property="picker2" destination="CWU-iM-QA5" id="X2S-hS-XfV"/>
<outlet property="picker3" destination="7EB-A5-pKO" id="V3z-ek-cGw"/>
</connections>
</controller>
</objects>
<point key="canvasLocation" x="463" y="61"/>
</scene>
但是,我的WKPickerItem大小不一。使用我的方法来修复每个选择器的大小,我有很大的空白空间用于简短的WKPickerItem和其他一些WKPickerItem被切断,因为它们太长了..
这些拣货员的尺码是否可变?
答案 0 :(得分:0)
我可以使用setWidth / Height动态调整拾取器的大小,但是不可能自动调整拾取器的大小。
我认为拣货员不会在手表中这样做