ios - UIActivityIndicatorView Swift stopanimation -
An action indicator declared in my view controller is when I click on a UIButton, the pointer starts. However, when the code is completed I can not see this indicator in my other class to prevent this. Any help would be appreciated.
@Iboutlet spinner again: UIActivityIndicatorView! // & lt; --- IBAction func sendClick (sender: UIButton) {spinner.startAnimating () var msg = message () msg.send ()}
< P>
Take a look at your scopes and access control!
If two classes are not within the same module, you have to declare the object as a public if the object is declared as private, then you can not see it from any other file class. .
For more information about access control, read this article from Apple's Swift Blog:
Or in the document here:
Comments
Post a Comment