Fix missing settings button on iPhone
This commit is contained in:
parent
fcf2937394
commit
19f8f8bc97
|
@ -60,6 +60,10 @@ struct AppAssets {
|
|||
return UIColor(named: "netNewsWireBlueColor")!
|
||||
}()
|
||||
|
||||
static var settingsImage: UIImage = {
|
||||
return UIImage(named: "settingsImage")!
|
||||
}()
|
||||
|
||||
static var smartFeedColor: UIColor = {
|
||||
return UIColor(named: "smartFeedColor")!
|
||||
}()
|
||||
|
|
|
@ -243,17 +243,7 @@
|
|||
</connections>
|
||||
</barButtonItem>
|
||||
</toolbarItems>
|
||||
<navigationItem key="navigationItem" title="Feeds" id="Zdf-7t-Un8">
|
||||
<barButtonItem key="leftBarButtonItem" title="Settings" image="settingsImage" id="2lM-3y-hKs">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="boolean" keyPath="accEnabled" value="YES"/>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="accLabelText" value="Settings"/>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="settings:" destination="7bK-jq-Zjz" id="keC-la-uyI"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
</navigationItem>
|
||||
<navigationItem key="navigationItem" title="Feeds" id="Zdf-7t-Un8"/>
|
||||
<simulatedToolbarMetrics key="simulatedBottomBarMetrics"/>
|
||||
<connections>
|
||||
<outlet property="addNewItemButton" destination="yo6-w4-SfI" id="NbL-RH-N4J"/>
|
||||
|
@ -291,7 +281,6 @@
|
|||
<image name="arrow.up" catalog="system" width="58" height="64"/>
|
||||
<image name="circle" catalog="system" width="64" height="62"/>
|
||||
<image name="safari" catalog="system" width="64" height="62"/>
|
||||
<image name="settingsImage" width="24" height="24"/>
|
||||
<image name="square.and.arrow.up" catalog="system" width="56" height="64"/>
|
||||
<image name="star" catalog="system" width="64" height="58"/>
|
||||
</resources>
|
||||
|
|
|
@ -29,6 +29,11 @@ class MasterFeedViewController: ProgressTableViewController, UndoableCommandRunn
|
|||
|
||||
super.viewDidLoad()
|
||||
|
||||
let settingsButton = UIBarButtonItem()
|
||||
settingsButton.image = AppAssets.settingsImage
|
||||
settingsButton.action = #selector(settings(_:))
|
||||
navigationItem.leftBarButtonItem = settingsButton
|
||||
|
||||
navigationItem.rightBarButtonItem = editButtonItem
|
||||
|
||||
tableView.register(MasterFeedTableViewSectionHeader.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||
|
|
Loading…
Reference in New Issue