Skip to content

Commit

Permalink
Fix for indicator center
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Oct 9, 2015
1 parent 05e9e3e commit 4a059f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kingfisher/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>264</string>
<string>265</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
3 changes: 2 additions & 1 deletion Kingfisher/UIImageView+Kingfisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ public extension UIImageView {
} else {
if newValue {
let indicator = UIActivityIndicatorView(activityIndicatorStyle:.Gray)
indicator.center = center
indicator.center = CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds))

indicator.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMargin, .FlexibleBottomMargin, .FlexibleTopMargin]
indicator.hidden = true
indicator.hidesWhenStopped = true
Expand Down

0 comments on commit 4a059f6

Please sign in to comment.