2016-07-07 10 views
0

私は時計アプリを作成していますが、ピッカーに問題があります。WKInterfacePicker - Swift - Watch Appの動的レイアウト

私はこのような側水平によっていくつかのピッカー側を持って欲しい:

<!--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

私はピッカーのサイズをsetWidth/Heightで動的に調整できますが、ピッカーのサイズを自動的に適応させることはできません。

ピッカーは時計でこれを行うとは思われません。

関連する問題