Giter Site home page Giter Site logo

zbwalbum's Introduction

ZBWAlbum

仿微信、小红书上传图片功能

image

一、Installation安装

CocoaPods

Carthage

手动安装

将Album文件夹拖拽到项目中,导入头文件:#import "ZBWPhotosManager.h"

二、Example例子

#import "ZBWPhotosManager.h"
// ZBWPhotosManager的类方法:传入最大可以选择的图片的数量
[ZBWPhotosManager showPhotosManager:self withMaxImageCount:10 withAlbumArray:^(NSMutableArray<ZBWPhotoModel *> * _Nonnull albumArray) {
        NSLog(@"%@",albumArray);
    }];

三、Release Notes 更新

1.0.1 修复bug-滚动崩溃的问题 & ZBWAlbumViewController.m强引用的问题 1.0.0 仿照微信图片上传的基础功能

zbwalbum's People

Contributors

imattz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tanliangjiade

zbwalbum's Issues

选取视频

你好,选取视频的时候如何获取到URL,并且只能选中1个视频

iOS 14.3 14.4部分手机系统会出现这个crash问题

#11 Thread
NSInvalidArgumentException
-[PHCollectionList assetCollectionType]: unrecognized selector sent to instance 0x282c005b0

0 CoreFoundation ___exceptionPreprocess + 220
1 libobjc.A.dylib objc_exception_throw + 60
2 CoreFoundation -[NSOrderedSet initWithSet:copyItems:]
3 CoreFoundation _forwarding + 1444
4 CoreFoundation _CF_forwarding_prep_0 + 96
5 Photos 0x000000019c01c000 + 1588444
6 Photos 0x000000019c01c000 + 1108160
7 ZeJiTiku -[ZBWAlbumModel setCollection:] (ZBWAlbumModel.m:0)
8 ZeJiTiku __44-[ZBWAlbumViewController getThumbnailImages]_block_invoke (ZBWAlbumViewController.m:160)
9 libdispatch.dylib __dispatch_call_block_and_release + 32
10 libdispatch.dylib __dispatch_client_callout + 20
11 libdispatch.dylib __dispatch_root_queue_drain + 656
12 libdispatch.dylib __dispatch_worker_thread2 + 116
13 libsystem_pthread.dylib _pthread_wqthread + 216
14 libsystem_pthread.dylib start_wqthread + 8

ios 14.6 [PHCollectionList assetCollectionType]: unrecognized selector sent to instance 0x281859e10' Clash

Trapped uncaught exception 'NSInvalidArgumentException', reason: '-[PHCollectionList assetCollectionType]: unrecognized selector sent to instance 0x281859e10'
(
0 CoreFoundation 0x00000001a1c732ac 4D6DD6DD-22E4-3858-9A0C-3CB77C2F13D6 + 1159852,
1 libobjc.A.dylib 0x00000001b59cd480 objc_exception_throw + 56,
2 CoreFoundation 0x00000001a1b822a8 4D6DD6DD-22E4-3858-9A0C-3CB77C2F13D6 + 172712,
3 CoreFoundation 0x00000001a1c758f4 4D6DD6DD-22E4-3858-9A0C-3CB77C2F13D6 + 1169652,
4 CoreFoundation 0x00000001a1c7789c _CF_forwarding_prep_0 + 92,
5 Photos 0x00000001b1ca6dc8 34AA80E5-CB11-3FFB-ACCA-20092B021AA8 + 1457608,
6 Photos 0x00000001b1c407f8 34AA80E5-CB11-3FFB-ACCA-20092B021AA8 + 1038328,
7 eWordmedical 0x000000010032f7a8 -[ZBWAlbumModel setCollection:] + 648,
8 eWordmedical 0x00000001002bc83c __44-[ZBWAlbumViewController getThumbnailImages]_block_invoke + 1912,
9 libdispatch.dylib 0x00000001018a7ae8 _dispatch_call_block_and_release + 24,
10 libdispatch.dylib 0x00000001018a932c _dispatch_client_callout + 16,
11 libdispatch.dylib 0x00000001018bafb8 _dispatch_root_queue_drain + 788,
12 libdispatch.dylib 0x00000001018bb73c _dispatch_worker_thread2 + 148,
13 libsystem_pthread.dylib 0x00000001ea031580 _pthread_wqthread + 212,
14 libsystem_pthread.dylib 0x00000001ea03486c start_wqthread + 8,
)

选择图片

选择图片获取的 ZBWPhotoModel 里的 highDefinitionImage 图片为什么是nil?谢谢你

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.