Swift - saving and retrieving images from userDefaults

前端 未结 2 2008
野性不改
野性不改 2021-01-26 00:22

I\'m trying to save images retrieved from Parse.com like this:

                    let userImageFile = object[\"Image\"] as PFFile
                    userImageF         


        
2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-26 00:34

    It seems like you do not call defaults.synchronize() so it's not written to the defaults file.

提交回复
热议问题