Skip to content

Commit

Permalink
[fix] 实例代码错误
Browse files Browse the repository at this point in the history
  • Loading branch information
indulgeIn committed Sep 28, 2019
1 parent 3de11a3 commit 20afa8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion YBImageBrowser.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Pod::Spec.new do |s|

s.name = "YBImageBrowser"

s.version = "3.0.4"
s.version = "3.0.5"

s.summary = "iOS image browser / iOS 图片浏览器"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (void)viewDidLoad {

YBImageBrowser *browser = [YBImageBrowser new];
// 禁止旋转(但是若当前控制器能旋转,图片浏览器也会跟随,布局可能会错位,这种情况还待处理)
browser.supportedOrientations = UIInterfaceOrientationPortrait;
browser.supportedOrientations = UIInterfaceOrientationMaskPortrait;
// 这里演示使用代理来处理数据源(当然用数组也可以)
browser.dataSource = self;
browser.currentPage = self.selectIndex;
Expand Down

0 comments on commit 20afa8f

Please sign in to comment.