• Stars
    star
    391
  • Rank 110,003 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is an advanced navigation control center on iOS that can allow you to navigate to whichever view controller you want. iOS上的改进的导航栏控制中心。

SCNavigationControlCenter

This is an advanced navigation control center that can allow you to navigate to whichever view controller you want.
iOS上的改进的导航栏控制中心。

[![CI Status](http://img.shields.io/travis/Sergio Chan/SCNavigationControlCenter.svg?style=flat)](https://travis-ci.org/Sergio Chan/SCNavigationControlCenter) Version License Platform

Preview 预览

image

image

Version 版本

0.1.5

Usage 用法

To run the example project, clone the repo, and run pod install from the Example directory first.

This idea is originated from In-App-Navigation-Improvement, since iOS9 has new multi-tasking control center, we are able to transfer the old style of navigation which you have to pop to root view by clicking Back button many times to a similar new one . You can now be able to pop to any previous view controller without clicking Back button for so many times.
It's a simple improvement anyway. This library may only be suitable for massive and complicated project like Facebook, so I designed this library mostly for its coupling. Bringing this library into your project won't bring you extra work, you only need to implement a line of code in your navigation controller's viewDidLoad method as shown in the Demo.
You can custom the entrance for triggering the control center. In the Demo, I will show you by long pressing the navigation Bar. You can simply custom the triggering by calling:

[[SCNavigationControlCenter sharedInstance] showWithNavigationController:self];

这个创意起源于In-App-Navigation-Improvement,由于iOS9推出了新的多任务控制交互,我们可以将传统的一层一层手动返回navigation的逻辑修改为类似的交互。你可以在当前navigationController的视图栈中任意抽取控制器然后pop到那个控制器,而不用手动连续点按Back。这是一个很简单的交互改进。
由于这个控件可能只适用于规模较大,且页面逻辑极为庞大和复杂的项目,因此我在设计之初考虑的重点就是耦合性。集成这个控件不会给你的项目带去一丝一毫的影响和多余的工作量,你只需要在navigationController的viewDidLoad中加上demo中所示的一行代码,并且为控制中心的触发添加一个事件入口。在demo中我展示的是navigationBar长按触发,这个事件可以由你自定义,只要相同的调用

[[SCNavigationControlCenter sharedInstance] showWithNavigationController:self];

即可。进入控制中心页面后,你可以滑动所有视图控制器的列表,点击其中最上面的一个然后返回到这个控制器。也可以点击空白区域取消操作。对于现有的控制器无需任何改动。

Requirements 环境

iOS 8.0 Above

Installation 如何集成

SCNavigationControlCenter is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SCNavigationControlCenter"

Backlog 日志

  • v0.1.0 Basic Version
  • v0.1.1 Add demo project
  • v0.1.2 Add pop out animation
  • v0.1.3 Add appear animation
  • v0.1.5 Fix a memory issue

  • v0.1.0 基本版本
  • v0.1.1 添加示例程序
  • v0.1.2 添加弹出动画
  • v0.1.3 添加出现动画
  • v0.1.5 修复一个内存bug

Author

Sergio Chan, [email protected]

License

SCNavigationControlCenter is available under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

SCTrelloNavigation

📋 An iOS native implementation of a Trello Animated Navagation. See more at https://dribbble.com/shots/2114816-Trello-Navigation. iOS上类似trello的导航动效框架实现。
Objective-C
800
star
2

SCCatWaitingHUD

🐱 This is a cute and simple loading HUD on iOS :-P 这是一个可爱清新简单的加载HUD控件
Objective-C
388
star
3

SCTableViewCell

📧 Swipe-to-Delete Effects like iOS Native Mail App。一个模仿iOS8中的邮箱里面的cell删除动效以及滑动右侧菜单按钮效果的开源库
Objective-C
342
star
4

SCCinemaAnimation

🎥 An iOS native implementation of a Cinema Animation Application. See more at https://dribbble.com/shots/2339238-Animation-for-Cinema-Application. iOS上电影购票的动效实现
Objective-C
233
star
5

SCActivityIndicatorView

An indicator view providing you more freedom to control and customize it.一个魔性的菊花控件,助你摆脱系统菊花的各种烦恼
Objective-C
109
star
6

ImagePicker

A highly encapsulated and fully functional open-source image picker written in Objc based on Photokit. Including album list, asset list, selection preview, camera and short video taking.
Objective-C
71
star
7

SCAwesomeNetworking

📡 An optimized networking framework based on AFNetworking and ProtoBuffer.
Objective-C
61
star
8

Android-Airplay-Server

Stable AirPlay Server on Android. Only support Airtunes Service, with little latency.
Java
51
star
9

TUCalender

根据业务需要基于JTCalendar改写的日历控件,不间断更新
Objective-C
38
star
10

SCPythonSudoku

A Python Sudoku solved program. Python写的深度优先搜索解数独程序。
Python
26
star
11

SCTornadoTCP

A TCP Server and Client based on tornado
Python
26
star
12

GitHubPopularityiOS

https://itunes.apple.com/us/app/popularity-widget-for-github/id1180395751?l=zh&ls=1&mt=8
Objective-C
10
star
13

SCSelfAgile

A Project for my daily life and well...obviously for fun
Objective-C
7
star
14

SCTagWriteView

An input custom view providing you ability to add and remove tags
Objective-C
6
star
15

MorningHorn

- This is a warm and simple Alarm App.
Objective-C
5
star
16

MinecraftServer-Bukkit-Forge-Ubuntu

A Minecraft server pack based on Ubuntu Linux OS with Bukkit and Forge support
5
star
17

SCPixelSurvival

A pixel game based on Sprite Kit
Objective-C
5
star
18

UILabel-AttributedText

This is a solution category for UILabel to deal with the issue about special chracters.
Objective-C
5
star
19

SCRealm2SQLORM

A realm ORM kit transferring realm usage to traditional SQLite usage. Just for learning and practicing.这是一个简单的realm的类似sqlite的数据库接口库。可以给熟悉sql语法,新入门realm的新手参考。
Objective-C
4
star
20

LinkedListSwift

Swift写的链表实现和各种基本操作。
Swift
3
star
21

SCPortfolio

3
star
22

BLTETransfer

Newer updated source code for https://developer.apple.com/library/prerelease/ios/samplecode/BTLE_Transfer/Introduction/Intro.html.
Objective-C
2
star
23

id-NSObjectDemo

This is a demo project for one of my blogs. 这是我的一篇博客的示例程序。
Objective-C
2
star
24

Monty-Hall-Problem-Swift

三门问题的Swift验证演示Playground,在原作者的基础上添加了中文注释
Swift
2
star
25

SCBlueToothKit

Blue Tooth Kit based on Core BlueTooth brings you to fly dealing with Blue Tooth development.
Objective-C
2
star
26

RunloopTest

Objective-C
2
star
27

SergioChan.github.io

HTML
2
star
28

my_Portfolio

Get rid of updating your resume and portfolio!
Objective-C
1
star