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

使用 Swift 的 iOS 设计模式(第二部分) #4829

Conversation

iWeslie
Copy link
Contributor

@iWeslie iWeslie commented Dec 8, 2018

译文翻译完成,resolve #4799

@swants
Copy link

swants commented Dec 8, 2018

校对认领,瞅着第一篇不错 第二篇翻译没抢着,还是认领校对吧!

@fanyijihua
Copy link
Collaborator

@swants 好的呢 🍺

Copy link

@swants swants left a comment

Choose a reason for hiding this comment

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

翻译的不错

1. `UIScrollView` 实例添加到 superView
2. 关闭自动调整遮罩(autoresizing mask),这样你就可以使用自定义约束了
3. 将约束应用于 scrollView,你希望 scrollView 完全填充 `HorizontalScrollerView`
4. 创建轻击手势识别器(tap gesture recognizer)。它会检测 scrollView 上的触摸事件并检查是否已经点击了专辑封面。如果是,它将通知 `HorizontalScrollerView` 的代理。在这里会有一个编译错误,因为 scrollerTapped(gesture:) 方法尚未实现,你接下来就要实现它了。
Copy link

Choose a reason for hiding this comment

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

编译错误
=>
编译警告

Copy link
Contributor Author

Choose a reason for hiding this comment

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

没有声明那个方法,会报错,编译通不过,不是警告。

Copy link
Contributor Author

@iWeslie iWeslie left a comment

Choose a reason for hiding this comment

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

翻译完成 @leviding

@leviding leviding added 标注 待管理员 Review and removed 校对认领 labels Dec 16, 2018
Copy link
Member

@leviding leviding left a comment

Choose a reason for hiding this comment

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

Great!

@leviding leviding merged commit 4dc25a9 into xitu:master Dec 17, 2018
@leviding
Copy link
Member

@iWeslie 已经 merge 啦~ 快快麻溜发布到掘金然后给我发下链接,方便及时添加积分哟。

掘金翻译计划有自己的知乎专栏,你也可以投稿哈,推荐使用一个好用的插件
专栏地址:https://zhuanlan.zhihu.com/juejinfanyi

@leviding leviding added 翻译完成 and removed 标注 待管理员 Review 正在校对 labels Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

使用 Swift 的 iOS 设计模式(第二部分)
4 participants