Latest 0.1.1
Homepage https://github.com/xiwuxisheng/XWImagePhotosBrowser
License MIT
Platforms ios 8.0
Dependencies SDWebImage, Masonry
Frameworks UIKit, Foundation
Authors

这里是仿照微信图片浏览器制作的通用控件XWImagePhotosBrowser,主要包括一下特点:
1>支持图片缩放和手势
2>支持图片仿微信位置变换动画
3>支持网络和本地图片数据模型,以协议作为适配器
4>允许更换默认图及加入图片文字米描述

效果显示图

效果图

核心代码使用范例

使用核心代码图

第一个expandPhotoBroswer方法用于打开图片浏览器
后续两个代理方法用于处理位置动画,采集当前图片相册达到的位置及frame,来进行弹出和关闭的动画

适配

语言换环境:Objective C
iOS系统:iOS 8.0++

安装

XWImagePhotosBrowser is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'XWImagePhotosBrowser'

作者

xiwuxisheng, [email protected]

License

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

Latest podspec

{
    "name": "XWImagePhotosBrowser",
    "version": "0.1.1",
    "summary": "u4effu5faeu4fe1u56feu7247u6d4fu89c8u5668.",
    "description": "1.u652fu6301u56feu7247u7f29u653eu62c9u4f38u53cau624bu52bfu64cdu4f5cn2.u652fu6301u56feu7247u4effu5faeu4fe1u4f4du7f6eu53d8u6362u7684u52a8u753bn3.u901au8fc7u534fu8baeu6269u5c55u56feu7247u663eu793au6570u636euff0cu672cu5730u548cu7f51u7edcu90fdu53efn4.u52a0u5165u56feu7247u9ed8u8ba4u56feu66f4u6539u53cau6587u5b57u63cfu8ff0.",
    "homepage": "https://github.com/xiwuxisheng/XWImagePhotosBrowser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xiwuxisheng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xiwuxisheng/XWImagePhotosBrowser.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "XWImagePhotosBrowser/Classes/Controller/*",
        "XWImagePhotosBrowser/Classes/View/*"
    ],
    "resource_bundles": {
        "XWImagePhotosBrowser": [
            "XWImagePhotosBrowser/Assets/Resource/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "dependencies": {
        "SDWebImage": [
            "~> 4.4.2"
        ],
        "Masonry": [
            "~> 1.1.0"
        ]
    },
    "subspecs": [
        {
            "name": "Common",
            "source_files": "XWImagePhotosBrowser/Classes/Common/*.{h,m}"
        },
        {
            "name": "Protocol",
            "source_files": "XWImagePhotosBrowser/Classes/Protocol/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This