0
使用最初在Xcode 4中開發的故事板在Xcode 5中工作,並且此工具欄的屬性不會修改。如果我嘗試取消選中「半透明」屬性,它將保持選中狀態。如果我將樣式更改爲默認值,它將恢復爲黑色。如果我選擇另一種色調,它會自行恢復爲默認。無法在界面構建器中編輯工具欄的屬性
我已經花了幾個小時尋找其他人報告這個問題,但還沒有找到一個解決方案。如此處所示,propertyAccessControl="none"
一路通過xml作爲故事板,所以不應該被鎖定。
<?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>
我發現我可以以編程方式設置屬性,但想知道爲什麼我不能使用Interface Builder來完成它。
任何人看到此行爲?有沒有修復?