Skip to content

Commit

Permalink
Sets the colour of pull to refresh label as white, as its not visible…
Browse files Browse the repository at this point in the history
… in the black background.
  • Loading branch information
rajabishek committed Mar 15, 2016
1 parent 1c58817 commit 1c012fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftRadio/StationsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class StationsViewController: UIViewController {

func setupPullToRefresh() {
self.refreshControl = UIRefreshControl()
self.refreshControl.attributedTitle = NSAttributedString(string: "Pull to refresh")
self.refreshControl.attributedTitle = NSAttributedString(string: "Pull to refresh", attributes: [NSForegroundColorAttributeName:UIColor.whiteColor()])
self.refreshControl.backgroundColor = UIColor.blackColor()
self.refreshControl.tintColor = UIColor.whiteColor()
self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
Expand Down

0 comments on commit 1c012fa

Please sign in to comment.