Latest 0.0.1
Homepage https://github.com/renzifeng/ZFPhoneTransition
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors





特性

  • 仿qq电话转场动画

要求

  • iOS 7+
  • Xcode 6+

安装

CocoaPods

pod 'ZFPhoneTransition'

效果图

图片效果演示

使用

ZFPhoneShared *phone = [ZFPhoneShared sharedPhone];
[[UIApplication sharedApplication].keyWindow addSubview:phone.btnOnLinePhone];

[phone.btnOnLinePhone addTarget:self action:@selector(btnOnLinePhonePressed:) forControlEvents:UIControlEventTouchUpInside];

- (void)btnOnLinePhonePressed:(UIButton *)btn
{
    ZFPhoneOnLineViewController *qqOnlineVC = [[ZFPhoneOnLineViewController alloc] init];
    UIWindow *window = [[UIApplication sharedApplication] keyWindow];
    id vc = window.rootViewController;
    if ([vc isKindOfClass:[UINavigationController class]]) {
        UINavigationController *nav = (UINavigationController *)vc;
        [nav.topViewController presentViewController:qqOnlineVC animated:YES completion:nil];
    } else if ([vc isKindOfClass:[UITabBarController class]]) {
        UITabBarController *tab = (UITabBarController *)vc;
        
		
; } else if ([vc isKindOfClass:[UIViewController class]]) { [vc presentViewController:qqOnlineVC animated:YES completion:nil]; } }

联系我

License

ZFPhoneTransition is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZFPhoneTransition",
    "version": "0.0.1",
    "summary": "u4effqqu7535u8bddu8f6cu573au52a8u753b",
    "homepage": "https://github.com/renzifeng/ZFPhoneTransition",
    "license": "MIT",
    "authors": {
        "renzifeng": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/renzifeng/ZFPhoneTransition.git",
        "tag": "0.0.1"
    },
    "source_files": "ZFPhone/**/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This