Changing activity indicator color to black

You need to set the color after you set the activity indicator style. It seems that setting the activityIndicatorViewStyle resets the color for the activityIndicator

So just do this:

// .... 

activityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.whiteLarge
activityIndicator.color = .black
footerView.addSubview(activityIndicator)
activityIndicator.startAnimating()
self.tableView.tableFooterView = footerView

This should work just fine.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)