Photos(PHAssetCollectionChangeRequest)

3855 단어
Photos(PHAssetChangeRequest)
Photos(PHAssetCreationRequest)
Photos(PHAssetCollectionChangeRequest)
Photos(PHCollectionListChangeRequest)
PHassetCollectionChangeRequest에서는 PHassetCollection 객체를 작성, 삭제 및 수정할 수 있습니다.

1 Adding New Asset Collections

///  
///
/// - parameter title :  
///
/// - returns: PHAssetCollectionChangeRequest
public class func creationRequestForAssetCollectionWithTitle(title: String) -> Self

///  
public var placeholderForCreatedAssetCollection: PHObjectPlaceholder { get }

2 Deleting Asset Collections

///  PHAssetCollection
///
/// - parameter assetCollections : [PHAssetCollection]
///
/// - returns: void
 public class func deleteAssetCollections(assetCollections: NSFastEnumeration)

3 Modifying Asset Collections

///  PHAssetCollection PHAssetCollectionChangeRequest
public convenience init?(forAssetCollection assetCollection: PHAssetCollection)

///  PHFetchResult PHAssetCollection 
public convenience init?(forAssetCollection assetCollection: PHAssetCollection, assets: PHFetchResult)

///  
public var title: String

///  [PHAsset]
public func addAssets(assets: NSFastEnumeration)
///  [PHAsset]
public func insertAssets(assets: NSFastEnumeration, atIndexes indexes: NSIndexSet)
///  [PHAsset]
public func removeAssets(assets: NSFastEnumeration)
///  [PHAsset]
public func removeAssetsAtIndexes(indexes: NSIndexSet)
///  [PHAsset]
public func replaceAssetsAtIndexes(indexes: NSIndexSet, withAssets assets: NSFastEnumeration)

///  [PHAsset] 
public func moveAssetsAtIndexes(fromIndexes: NSIndexSet, toIndex: Int)

 

기타


소스 코드


Swift

참고 자료


Photos Framework Reference
PHAssetCreationRequest Class Reference

문서 수정 레코드


타임
묘사
2016-01-07
박문 완성

저작권 소유


CSDN:http://blog.csdn.net/y550918116j
GitHub:https://github.com/937447974/Blog

좋은 웹페이지 즐겨찾기