9_Permanent Storage
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了9_Permanent Storage相关的知识,希望对你有一定的参考价值。
9
// // ViewController.swift // Permanent Storage // // Created by ZC on 16/1/9. // Copyright © 2016年 ZC. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. NSUserDefaults.standardUserDefaults().setObject("zcdll", forKey: "name") let userName = NSUserDefaults.standardUserDefaults().objectForKey("name")! as! String print(userName) let arr = [1,2,3,4,5] NSUserDefaults.standardUserDefaults().setObject(arr, forKey: "Array") let returnArray = NSUserDefaults.standardUserDefaults().objectForKey("Array")! as! NSArray for m in returnArray { print(m) } } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
以上是关于9_Permanent Storage的主要内容,如果未能解决你的问题,请参考以下文章
;~ 小部分AutoHotkey源代码片段测试模板2019年10月9日.ahk
Microsoft.WindowsAzure.Storage (WindowsAzure.Storage) 9.1.1 在其依赖之外调用 Newtonsoft 失败