Photos(PHCollectionListChangeRequest)

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

1 Adding New Collection Lists

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

///  PHCollectionList
public var placeholderForCreatedAssetCollection: PHObjectPlaceholder { get }

2 Deleting Collection Lists

///  PHCollectionList
///
/// - parameter collectionLists : [PHCollectionList]
///
/// - returns: void
public class func deleteCollectionLists(collectionLists: NSFastEnumeration)

3 Modifying Collection Lists

///  PHCollectionList PHCollectionListChangeRequest
 public convenience init?(forCollectionList collectionList: PHCollectionList)

///  PHFetchResult PHCollectionList 
public convenience init?(forCollectionList collectionList: PHCollectionList, childCollections: PHFetchResult)

///  
public var title: String

// A PHCollection can only belong to a single parent PHCollection
///  [PHCollection]
public func addChildCollections(collections: NSFastEnumeration)
///  [PHCollection]
public func insertChildCollections(collections: NSFastEnumeration, atIndexes indexes: NSIndexSet)
///  [PHCollection]
public func removeChildCollections(collections: NSFastEnumeration)
///  [PHCollection]
public func removeChildCollectionsAtIndexes(indexes: NSIndexSet)
///  [PHCollection]
public func replaceChildCollectionsAtIndexes(indexes: NSIndexSet, withChildCollections collections: NSFastEnumeration)

///  PHCollectionList 
public func moveChildCollectionsAtIndexes(indexes: 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

좋은 웹페이지 즐겨찾기