let messageBox:MessageBox = MessageBox()
// set
messageBox.setObject("TestObject1", forKey:"TestKey1")
// get
// but don't remove it, keep it stored, so that it can still be retrieved later
let someObject:String = messageBox.getObject(forKey:"TestKey1", removeIfFound:false)
// get
// and remove it
let someObject:String = messageBox.getObject(forKey:"TestKey1", removeIfFound:true)
Contributors
Topic Id: 9118
Example Ids: 28311
This site is not affiliated with any of the contributors.