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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -