加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
OCMainController_SyncNavgationItems.codesnippet 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
Shreker 提交于 2016-07-27 09:50 . Import Sources...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>OCMainController</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>ClassImplementation</string>
</array>
<key>IDECodeSnippetContents</key>
<string>/** 同步TabBar的NavigationItem */
- (void)syncNavgationItemsFromViewController:(UIViewController *)viewController {
self.navigationItem.leftBarButtonItem = viewController.navigationItem.leftBarButtonItem;
self.navigationItem.leftBarButtonItems = viewController.navigationItem.leftBarButtonItems;
self.navigationItem.rightBarButtonItem = viewController.navigationItem.rightBarButtonItem;
self.navigationItem.rightBarButtonItems = viewController.navigationItem.rightBarButtonItems;
self.navigationItem.titleView = viewController.navigationItem.titleView;
self.navigationItem.title = viewController.navigationItem.title;
}</string>
<key>IDECodeSnippetIdentifier</key>
<string>24DC6EC5-037E-415D-B249-1680BAFB2D2C</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetSummary</key>
<string>Sync navgationItems to current navgationBar</string>
<key>IDECodeSnippetTitle</key>
<string>OCMainController_SyncNavgationItems</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化