Enjoy the interactive poping feature of UINavigationController
? But where is the missing interactive pushing? Here it is.
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationController.rt_enableInteractivePush = YES;
...
}
- (nullable __kindof UIViewController *)rt_nextSiblingController
{
return [[YourNewViewController alloc] init];
}
- iOS 7 +
- Xcode 8 +
InteractivePush is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RTInteractivePush"
Ricky Tan, ricky.tan.xin@gmail.com
InteractivePush is available under the MIT license. See the LICENSE file for more info.