2014-07-20 4 views
0

Xcode 4에서 원래 개발 된 스토리 보드로 Xcode 5에서 작업하고이 도구 막대의 속성은 수정되지 않습니다. 반투명 속성을 선택 해제하려고하면 체크 된 상태로 유지됩니다. 스타일을 기본값으로 변경하면 다시 검은 색으로 되돌아갑니다. 다른 틴트 컬러를 선택하면 원래대로 되돌아갑니다.인터페이스 빌더에서 도구 막대의 속성을 편집 할 수 없습니다.

interface builder

나는이 문제를보고 다른 사람을 검색 할 시간을 보냈다했지만 해결책을 발견하지 않았습니다. 여기에 표시된대로 스토리 보드 용 XML을 통해 propertyAccessControl="none"까지 끝났으므로 잠겨서는 안됩니다.

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5056" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="jL0-BO-w2j"> 
     <dependencies> 
      <deployment version="1296" defaultVersion="1296" identifier="iOS"/> 
      <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/> 
     </dependencies> 
     <scenes> 
      <!--Navigation Controller--> 
     <scene sceneID="gu0-4A-nEl"> 
      <objects> 
       <navigationController toolbarHidden="NO" id="jL0-BO-w2j" sceneMemberID="viewController"> 
        <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" barStyle="black" prompted="NO"/> 
        <simulatedToolbarMetrics key="simulatedBottomBarMetrics" barStyle="black"/> 
        <navigationBar key="navigationBar" contentMode="scaleToFill" translucent="NO" id="dbG-E3-2vd"> 
         <rect key="frame" x="0.0" y="-44" width="0.0" height="44"/> 
         <autoresizingMask key="autoresizingMask"/> 
        </navigationBar> 
        <toolbar key="toolbar" opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" barStyle="black" id="tYf-Nn-i3a"> 
         <rect key="frame" x="0.0" y="436" width="320" height="44"/> 
         <autoresizingMask key="autoresizingMask"/> 
        </toolbar> 
        <connections> 
         <segue destination="a8f-Pc-RWZ" kind="relationship" relationship="rootViewController" id="iWb-Pc-dmA"/> 
        </connections> 
       </navigationController> 
       <placeholder placeholderIdentifier="IBFirstResponder" id="bVC-2G-0Rf" userLabel="First Responder" sceneMemberID="firstResponder"/> 
      </objects> 
      <point key="canvasLocation" x="-542" y="196"/> 
     </scene> 
     <!--Launcher Vw Ctrlr--> 
     <scene sceneID="jIZ-Jl-nXT"> 
      <objects> 
       <viewController id="a8f-Pc-RWZ" customClass="CMLauncherVwCtrlr" sceneMemberID="viewController"> 
        <view key="view" contentMode="scaleToFill" id="7fP-rW-Kc8"> 
         <rect key="frame" x="0.0" y="64" width="320" height="416"/> 
         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> 
         <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> 
        </view> 
        <extendedEdge key="edgesForExtendedLayout" bottom="YES"/> 
        <toolbarItems> 
         <barButtonItem title="Prev" id="GnE-88-jui"> 
          <connections> 
           <action selector="prev:" destination="a8f-Pc-RWZ" id="DGd-03-xGA"/> 
          </connections> 
         </barButtonItem> 
        </toolbarItems> 
        <navigationItem key="navigationItem" id="xrV-QS-Ox8"/> 
        <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" barStyle="black" prompted="NO"/> 
        <simulatedToolbarMetrics key="simulatedBottomBarMetrics" barStyle="black"/> 
        <connections> 
         <outlet property="prevButton" destination="GnE-88-jui" id="uP0-CN-ALW"/> 
        </connections> 
       </viewController> 
       <placeholder placeholderIdentifier="IBFirstResponder" id="5ng-sW-JW4" userLabel="First Responder" sceneMemberID="firstResponder"/> 
      </objects> 
      <point key="canvasLocation" x="-61" y="196"/> 
     </scene> 
    </scenes> 
    <simulatedMetricsContainer key="defaultSimulatedMetrics"> 
     <simulatedStatusBarMetrics key="statusBar"/> 
     <simulatedOrientationMetrics key="orientation"/> 
     <simulatedScreenMetrics key="destination"/> 
    </simulatedMetricsContainer> 
</document> 

프로그래밍 방식으로 속성을 설정할 수 있지만 인터페이스 작성기를 사용하여 수행 할 수없는 이유가 궁금합니다.

누구든지이 동작을 발견 했습니까? 수정 사항이 있습니까?

답변

1

문제점이 무엇인지 알아 냈습니다 : 나야. 어떤 물건이 다른 물건과 어떤 관련이 있는지 이해하지 못했습니다. 원래 게시물의 이미지에서 툴바가 탐색 컨트롤러에 포함되어 있는지 확인할 수 있습니다.

toolbar attributes

I은 ​​포함하는 네비게이션 컨트롤러의 속성을 확인하면, 내가 도구 모음의 스타일과 반투명 속성이 실제로 "하단 바"에서이 제어되는 것을 볼 수 있습니다.

navigation controller attributes

난 그냥 내 생각, 더 나은 인터페이스 빌더를 알아야합니다.

관련 문제