Trying to use the code block below, but donβt know how to get the parameters bit to work in the else clause, I keep getting "NSPropertyListMutabilityOptions", which does not convert to "NSPropertyListReadOptions". But the Read parameters do not have the MutableContainersWithLeaves that I need.
//if the file does not already exist if(appStatsData != nil) { appStats.setObject(NSNumber.numberWithInt(0), forKey:"RunCount") appStats.setObject("No Courses Viewed", forKey:"LastCourseViewed") }else { appStats = NSPropertyListSerialization.propertyListWithData(appStatsData, options: NSPropertyListMutabilityOptions.MutableContainersAndLeaves, format: nil, error: &error) }
ios8 swift xcode6
Alicester4WonderlandPresident
source share