|
@@ -23,6 +23,8 @@
|
|
|
|
|
|
// =============================================
|
|
|
|
|
|
+#import "SLMomentsVc.h"
|
|
|
+
|
|
|
@interface SDPhotoBrowser()
|
|
|
|
|
|
@property (nonatomic, strong) UIButton *operationLikeButton;
|
|
@@ -333,10 +335,24 @@
|
|
|
|
|
|
- (void)show
|
|
|
{
|
|
|
+ BOOL justShowImages = NO;
|
|
|
+ SLMomentsVc *vc = (SLMomentsVc *)[UIViewController getCurrentShowVC];
|
|
|
+ if ([vc isKindOfClass:SLMomentsVc.class] && !vc.isFriendList) {
|
|
|
+ justShowImages = YES;
|
|
|
+ }
|
|
|
UIWindow *window = [UIApplication sharedApplication].keyWindow;
|
|
|
self.frame = window.bounds;
|
|
|
[window addObserver:self forKeyPath:@"frame" options:0 context:nil];
|
|
|
[window addSubview:self];
|
|
|
+ if (justShowImages) {
|
|
|
+ [self.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
|
+ if (obj == _scrollView || obj == _indexLabel) {
|
|
|
+ obj.hidden = NO;
|
|
|
+ }else {
|
|
|
+ obj.hidden = YES;
|
|
|
+ }
|
|
|
+ }];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(UIView *)object change:(NSDictionary *)change context:(void *)context
|