Swift Tutorial - To Do List App
Why Stack Overflow recommends it
Stack Overflow users link it as a worked Swift example when answering early Swift questions, and askers cite it as the tutorial their code is based on.
Recommended by 2 people across 2 different months, 2014 to 2015.
What it is
A 2014 beginner tutorial from rm2kdev that builds a basic to-do list iOS app in Apple's then-new Swift language, starting from a blank Xcode project. It covers a tabbed layout, a manager class for tasks, and table views over about 36 minutes.
What people said
Recommends derdida · 2014-07 · Stack Overflow · on “How to change label of a second viewController since first viewController?”
Provide some Code, otherwise its hard to help. Or check one of the Swift Tutorial Videos on youtube (They explain how do use multiple Windows [this video] )
Recommends 4thSpace · 2015-03 · Stack Overflow · on “Converting String! to String”
@aganders3 that pattern will work but I was trying to follow this pattern: [this video] Check at 5:07 and implementation at 25:16.
Cites Bigfoot11 · 2015-03 · Stack Overflow · on “Empty Array in Swift?”
I am trying to create an empty array in Swift that the user adds on to. It is a very small class because I am just starting a new file. I am using this [this video] tutorial for my project which is what the code is based off. Here is the code I tried (It didn't work): var tasks = task[]() Here is all of my code in case it is needed: class TaskManager: NSObject { var tasks = task[]() func addTask(name: String){ tasks.append(task(name: name)) } } There is an error on the var tasks = task[]() line saying: "Array types are now written the brackets around the element type". I am unsure of how to fix the problem. How can one create an empty array? Any input or suggestions would be greatly appreciated.
Cites southheat92 · 2015-06 · Stack Overflow · on “Swift app crashes with (lldb) as only debug output after @IBAction with a UIButton sender”
I see after researching that this particular debug output isn't super rare, but the causes can differ pretty greatly. I'm new to iOS development and have been trying to figure out why the app is crashing, but can't crack it. I'm going to supply a lot of different code snippets, because I only have a hunch as to what's actually wrong. I'm partially following along to this video tutorial for a ToDo list [this video] , while differing in some ways. Most notably, I chose not to start with a Tabbed Application template and instead looked up a way to unwind views. Here is the simple object manager class that the tutorial has you create: import UIKit var rmndrMgr = ReminderManager() struct reminder { va