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

修复手势没设置上的问题:需要通过 setPhoto:(PYPhoto *)photo 设置。 #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ksti
Copy link
Contributor

@ksti ksti commented Oct 25, 2018

// 设置图片
PYPhoto *photo = [[PYPhoto alloc] init];
// ...初始化设置一些属性
// 然后赋值调用 setPhoto:(PYPhoto *)photo
photoView.photo = photo;

// 设置图片
PYPhoto *photo = [[PYPhoto alloc] init];
// ...初始化设置一些属性
// 然后赋值调用 setPhoto:(PYPhoto *)photo
photoView.photo = photo;
@@ -106,6 +106,41 @@ - (void)changeNavBarState
[self setNeedsStatusBarAppearanceUpdate];
self.navigationController.navigationBar.py_y = self.statusBarHidden ? -self.navigationController.navigationBar.py_height : [UIApplication sharedApplication].statusBarFrame.size.height;
} completion:nil];

Copy link
Contributor Author

Choose a reason for hiding this comment

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

在ios11上(可能也在之前的某个版本),[self setNeedsStatusBarAppearanceUpdate]; 动画有点问题,感觉是ios系统的bug (UIView animateWithDuration),改动方案1:直接屏蔽掉。。保留状态栏不动 改动方案2:分开动画,但是在中间的时候有点卡顿。。

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.

1 participant