here was a mistake, when we opened the browser, and then turned the device activity light remained in the same place that looked incorrectly https://www.dropbox.com/s/mc55lvapyqaetpo/Simulator%20Screen%20Shot%20Apr%205%2C%202016%2C%202.29.37%20PM.png?dl=0

This commit is contained in:
Alexsander Khitev 2016-04-05 18:41:13 +04:00
parent 1af051b8a2
commit 9777879583
2 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class SKIndicatorView: UIActivityIndicatorView {
override init(frame: CGRect) {
super.init(frame: frame)
center = CGPoint(x: frame.width/2, y: frame.height/2)
center = CGPoint(x: frame.width / 2, y: frame.height / 2)
activityIndicatorViewStyle = .WhiteLarge
}

View File

@ -74,9 +74,13 @@ public class SKZoomingScrollView: UIScrollView, UIScrollViewDelegate, SKDetectin
}
// MARK: - override
public override func layoutSubviews() {
tapView.frame = bounds
//
indicatorView.frame = frame
super.layoutSubviews()
let boundsSize = bounds.size