swift - Customize the camera roll and show the icon on iCloud media -


is there way check media physically available on device. in other words how identify icloud media using swift or objective c.

i have tried access below property seems there issue that.

public struct phassetsourcetype : optionset {      public init(rawvalue: uint)       public static var typeuserlibrary: phassetsourcetype { }      public static var typecloudshared: phassetsourcetype { }      public static var typeitunessynced: phassetsourcetype { } } 

code check icloud media.

 let assettype = (self.assets?[indexpath.row])! phasset             // let sourcetype = assettype.sourcetype phassetsourcetype    if assettype.sourcetype.rawvalue == 2 /*.typecloudshared*/ {                 (cell as! fnscamerarollcollectionviewcell).icloudimage.ishidden = false             }  **or**   if assettype.sourcetype == .typecloudshared {                 (cell as! fnscamerarollcollectionviewcell).icloudimage.ishidden = false             }  

i getting below result :

phassetsourcetype(rawvalue: 1)

my objective customize camera roll , show icon on icloud media.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -