pod 'ZFPhoneTransition'
#import "ZFPhoneTransition.h"
// Call button click event
- (void)btnOnLinePhonePressed
{
ZFPhoneOnLineViewController *qqOnlineVC = [[ZFPhoneOnLineViewController alloc] init];
if ([[UIApplication sharedApplication].keyWindow viewWithTag:PHONE_VIEW_TAG]) {
qqOnlineVC.pressentType = ZFPhoneTransitionPressentTypeMask;
}else {
qqOnlineVC.pressentType = ZFPhoneTransitionPressentTypeNormal;
}
[self presentViewController:qqOnlineVC animated:YES completion:nil];
}
ZFPhoneTransition is available under the MIT license. See the LICENSE file for more info.