Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.73 KB

Readme.md

File metadata and controls

42 lines (27 loc) · 1.73 KB

RFSegue - Missing features for UIStoryboardSegue

Build Status Codecov CocoaPods

English 简体中文 🇨🇳

CocoaPods Install

pod 'RFSegue'

Specify develop branch to install the lastest version:

pod 'RFSegue',
    :git => 'https://github.com/RFUI/RFSegue.git',
    :branch => 'develop',
    :subspecs => ['Async', 'Return', 'Present']

Version

v3 was designed when iOS 5 just came out. The architecture is outdated and should be deprecated. Checkout v3 branch for legacy usage.

pod 'RFSegue', :git => 'https://github.com/RFUI/RFSegue.git', :branch => 'v3'

Asynchronous segue

By using RFAsynchronousSegue, you can perform or cancel an seuge asynchronous.

Return buttons

Using segue we can transit between view controllers conveniently from the outside in. But how to return? Generally we must write some code. We had subclassed UIButton and UIBarButtonItem to make this as convenient as segue. For an UIButton, you just change it’c class, no more operate! You need drag masterViewController IBOutlet to current view controller if there are UIBarButtonItem. IBAction or addTarget no longer needed.

By implement RFSegueReturnDelegate protrol, you could control whether the return should be executed or not.