Posts

Post not yet marked as solved
3 Replies
2.5k Views
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
Posted
by diegoarth.
Last updated
.
Post marked as solved
4 Replies
1.3k Views
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,
Posted
by diegoarth.
Last updated
.