Skip to content

Commit 67f4eea

Browse files
author
zhouxing
committed
增加部分图片选择功能交互及处理
1 parent e6184f9 commit 67f4eea

File tree

8 files changed

+593
-74
lines changed

8 files changed

+593
-74
lines changed

packages/image_picker/image_picker_ios/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 46;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -328,6 +328,7 @@
328328
};
329329
97C146ED1CF9000F007C117D = {
330330
CreatedOnToolsVersion = 7.3.1;
331+
DevelopmentTeam = XP6GSQ673W;
331332
SystemCapabilities = {
332333
com.apple.BackgroundModes = {
333334
enabled = 1;
@@ -714,6 +715,7 @@
714715
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
715716
buildSettings = {
716717
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
718+
DEVELOPMENT_TEAM = XP6GSQ673W;
717719
ENABLE_BITCODE = NO;
718720
FRAMEWORK_SEARCH_PATHS = (
719721
"$(inherited)",
@@ -735,6 +737,7 @@
735737
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
736738
buildSettings = {
737739
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
740+
DEVELOPMENT_TEAM = XP6GSQ673W;
738741
ENABLE_BITCODE = NO;
739742
FRAMEWORK_SEARCH_PATHS = (
740743
"$(inherited)",

packages/image_picker/image_picker_ios/example/ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,7 @@
5555
</array>
5656
<key>UIViewControllerBasedStatusBarAppearance</key>
5757
<false/>
58+
<key>PHPhotoLibraryPreventAutomaticLimitedAccessAlert</key>
59+
<true/>
5860
</dict>
5961
</plist>

packages/image_picker/image_picker_ios/example/ios/RunnerTests/PickerSaveImageToPathOperationTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ - (void)verifySavingImageWithPickerResult:(PHPickerResult *)result
103103
maxWidth:@100
104104
desiredImageQuality:@100
105105
fullMetadata:fullMetadata
106+
directAsset:nil
106107
savedPathBlock:^(NSString *savedPath) {
107108
if ([[NSFileManager defaultManager] fileExistsAtPath:savedPath]) {
108109
[pathExpectation fulfill];
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// FLTImageLimitSelectController.h
3+
// image_picker_ios
4+
//
5+
// Created by 周兴 on 2022/10/19.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@class PHAsset;
13+
14+
typedef void(^SelectedBlock)(NSArray<PHAsset *> *assets);
15+
16+
@interface FLTImageLimitSelectController : UIViewController
17+
18+
- (instancetype)initWithIsMulitiSelect:(BOOL)isMulitiSelect
19+
selectedBlock:(SelectedBlock)selectedBlock;
20+
21+
@end
22+
23+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)