-
Notifications
You must be signed in to change notification settings - Fork 5k
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
使用 Swift 的 iOS 设计模式(第二部分) #4829
Conversation
校对认领,瞅着第一篇不错 第二篇翻译没抢着,还是认领校对吧! |
@swants 好的呢 🍺 |
There was a problem hiding this 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:) 方法尚未实现,你接下来就要实现它了。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
编译错误
=>
编译警告
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有声明那个方法,会报错,编译通不过,不是警告。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻译完成 @leviding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
@iWeslie 已经 merge 啦~ 快快麻溜发布到掘金然后给我发下链接,方便及时添加积分哟。 掘金翻译计划有自己的知乎专栏,你也可以投稿哈,推荐使用一个好用的插件。 |
译文翻译完成,resolve #4799