Latest 1.0
Homepage https://github.com/JackTeam/XHMediaZoom
License MIT
Platforms ios 5.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

中文:类似instagrm图片、视频等资源的缩放动画View来查看详细内容,根据ImageView的位置进行缩放,并且还有查看语音资源的播放功能,注意:资源文件可是网络的,也是可以是本地的,方便自定义使用,并且还具有iOS7背景毛玻璃效果,可以自定设置是否开启.

English:Similar instagrm picture zoom animation, video and other resources View to View the details, according to the location of the ImageView to zoom in, and View the voice broadcast function, note: resource file but the network, also can be local, convenient custom use, and also has iOS7 background frosted glass effect, can be customised Settings are open.

image
image
image

安装

Installation

中文: CocosPods安装XHMediaZoom的推荐方法,只是在Podfile添加以下行:

english: CocosPods is the recommended methods of installation XHMediaZoom, just add the following line to Profile:

Profile

pod 'XHMediaZoom'

例子

Example

- (void)_setup {
    UIImageView *imgaeView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"your image"]];
    imgaeView.userInteractionEnabled = YES;
    [imgaeView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(show:)]];
    [self.view addSubview:imgaeView];
}

- (void)show:(UITapGestureRecognizer *)gesture {
    [self _showZoom:(UIImageView *)gesture.view];
}

- (void)_showZoom:(UIImageView *)imageView {
    XHMediaZoom *imageZoomView = [[XHMediaZoom alloc] initWithAnimationTime:0.5 imageView:imageView blurEffect:NO];
    // self.imageView 是你被点击的控件
    // self.imageView is your imageView
    imageZoomView.tag = 1;
    imageZoomView.backgroundColor = [UIColor colorWithRed:0.141 green:0.310 blue:1.000 alpha:1.000];
    imageZoomView.maxAlpha = 0.75;
    [imageZoomView show];
}

Thank you

rFlex provide VideoPlay

License

中文: XHMediaZoom 是在MIT协议下使用的,可以在LICENSE文件里面找到相关的使用协议信息.

English: XHMediaZoom is acailable under the MIT license, see the LICENSE file for more information.

=======================

须知

中文:如果您在您的项目中使用该开源组件,请给我们发电子邮件告诉我们您的应用程序的名称。

Instructions

English:If you use the open source components in your project, please Email us to tell us the name of your application.

Latest podspec

{
    "name": "XHMediaZoom",
    "version": "1.0",
    "summary": "u7c7bu4f3cinstagrmu56feu7247u3001u89c6u9891u7b49u8d44u6e90u7684u7f29u653eu52a8u753bViewu6765u67e5u770bu8be6u7ec6u5185u5bb9",
    "homepage": "https://github.com/JackTeam/XHMediaZoom",
    "license": "MIT",
    "authors": {
        "xhzengAIB": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JackTeam/XHMediaZoom.git",
        "tag": "v1.0"
    },
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ],
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "Source",
    "requires_arc": true
}

Pin It on Pinterest

Share This