Post

Replies

Boosts

Views

Activity

App running in background or when the screen is locked
Hi,My app start to count the seconds when oppened. Follow the code:import UIKitclass ViewController: UIViewController { @IBOutlet weak var label1: UILabel! //Display showing the seconds var i = 0 //Counter override func viewDidLoad() { super.viewDidLoad() // After loading the view. Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(Estouro), userInfo: nil, repeats: true) } @objc func Estouro(){ i = i + 1 label1.text = String(i) //Display seconds }}What can I do to keep counting the secounds in background or after lock the screen?Thank you,
4
0
1.5k
Jun ’20
App no Longer Available
Hi, I'm not a professional developer. I have basic knowledge in programming and I had the intention to create some apps on Xcode to my personal use only. However, some time after create my first one and run on my personal iPhone, I've received a message the app was no Longer available. I did a research and looks like I need to pay Apple if I want to use the app I've created. Is this conclusion correct? If not, what I need to do? Thanks Diego
4
1
3.1k
Apr ’21