Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2-9-31 dev #400

Merged
merged 2 commits into from
Nov 14, 2024
Merged

2-9-31 dev #400

merged 2 commits into from
Nov 14, 2024

Conversation

henry9610
Copy link
Contributor

  1. fix incorrect image rotation when displaying occasionally.
  2. fix switch to another app while viewing a PDF and then return, app will restart.

@henry9610 henry9610 force-pushed the 2-9-31-dev branch 2 times, most recently from df52428 to cb24ac5 Compare November 11, 2024 02:36

+ (UIImage *)reSizeImage:(UIImage *)image toSquare:(float)length {
CGSize newSize = CGSizeMake(length, length);
if (@available(iOS 10.0, *)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在app支持的最低版本是iOS11,可以不需要判断版本,另外UIGraphicsImageRenderer这个方法在iOS17之后的系统上会出现size的宽高为零时的崩溃,最好是加上对length的判断,防止后面调用时出现问题。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants