Skip to content

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

Open
ksti wants to merge 1 commit intoko1o:masterfrom
ksti:master
Open

修复手势没设置上的问题:需要通过 setPhoto:(PYPhoto *)photo 设置。#192
ksti wants to merge 1 commit intoko1o:masterfrom
ksti:master

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;
[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