let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
let context : NSManagedObjectContext = appDelegate.managedObjectContext
let users = NSEntity.insertObjectForEntityForName("Users",context)
//Configurations go here
do {
try context.save() } catch {print(error)}

Try running that code onto a code compiler and you will see magic and what am i like. Like it or not,only one person decides.
  • Singapore
  • JoinedOctober 13, 2015


Following

Last Message
BennTan BennTan Jun 07, 2016 08:44AM
My first book is in production,that's right! You heard it,I said it,the very first book is right in!
View all Conversations

Story by Benn Tan
The Lift by BennTan
The Lift
This book is dedicated to Pui Yi. A too-short story We take lifts everyday, up and down it goes from our hect...