Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WMPageController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WMPageController"
s.version = "2.5.2"
s.version = "2.5.3"
s.summary = "An easy solution to page controllers like NetEase News"
s.homepage = "https://github.com/wangmchn/WMPageController"
s.license = 'MIT (LICENSE)'
Expand Down
3 changes: 3 additions & 0 deletions WMPageController/WMPageController.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ extern NSString *const WMControllerDidFullyDisplayedNotification;
/** 内部容器 */
@property (nonatomic, nullable, weak) WMScrollView *scrollView;

/** 内部容器背景色 */
@property (nonatomic, nullable, weak) UIColor *scrollViewBackgroundColor;

/** MenuView 内部视图与左右的间距 */
@property (nonatomic, assign) CGFloat menuViewContentMargin;

Expand Down
2 changes: 1 addition & 1 deletion WMPageController/WMPageController.m
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ - (void)wm_addScrollView {
WMScrollView *scrollView = [[WMScrollView alloc] init];
scrollView.scrollsToTop = NO;
scrollView.pagingEnabled = YES;
scrollView.backgroundColor = [UIColor whiteColor];
scrollView.backgroundColor = (self.scrollViewBackgroundColor ?: [UIColor whiteColor]);
scrollView.delegate = self;
scrollView.showsVerticalScrollIndicator = NO;
scrollView.showsHorizontalScrollIndicator = NO;
Expand Down