Skip to content
/ RFSegue Public

Missing features for UIStoryboardSegue

License

Notifications You must be signed in to change notification settings

RFUI/RFSegue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.