
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
38 lines
927 B
Objective-C
38 lines
927 B
Objective-C
//
|
|
// ShareHelder.h
|
|
// YuMi
|
|
//
|
|
// Created by P on 2025/3/6.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface ShareHelder : NSObject
|
|
|
|
/// 触发系统分享面板
|
|
/// @param image 需要分享的图片
|
|
/// @param urlString 需要分享的 URL 字符串
|
|
/// @param viewController 触发分享的视图控制器
|
|
+ (void)shareImage:(UIImage *)image
|
|
url:(NSString *)urlString
|
|
fromController:(UIViewController *)viewController;
|
|
|
|
/// 提取 URL 和剩余字符串
|
|
/// @param inputString 输入字符串
|
|
/// @return 包含 URL 和剩余字符串的字典
|
|
+ (NSDictionary *)extractURLAndRemainingStringFromString:(NSString *)inputString;
|
|
|
|
/// 提取 URL 字符串
|
|
/// @param inputString 输入字符串
|
|
/// @return 提取的 URL 字符串
|
|
+ (NSString *)extractURLFromString:(NSString *)inputString;
|
|
|
|
/// 强制关闭分享弹窗
|
|
+ (void)forceCloseShareSheet;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|