Using Xcode 7 and swift 2.0 if get the following error on the context?.save(nil).
Any help is appreciated
"cannot use optional chaining on non-optional value of type 'NSManagedObjectContext'
func newItem() {
let context = self.context
let ent = NSEntityDescription.entityForName("CallList", inManagedObjectContext: context)
let nItem = CallList(entity: ent!, insertIntoManagedObjectContext: context)
nItem.firstname = firstName.text
nItem.lastname = lastName.text
nItem.phonenumber = phoneNumber.text
context?.save(nil)