Photos(PHCollectionListChangeRequest)
2016-01-07 17:17
495 查看
Photos(PHAssetChangeRequest)
Photos(PHAssetCreationRequest)
Photos(PHAssetCollectionChangeRequest)
Photos(PHCollectionListChangeRequest)
PHCollectionListChangeRequest可创建、删除和修改PHCollectionList对象。
PHAssetCreationRequest Class Reference
GitHub:https://github.com/937447974/Blog
Photos(PHAssetCreationRequest)
Photos(PHAssetCollectionChangeRequest)
Photos(PHCollectionListChangeRequest)
PHCollectionListChangeRequest可创建、删除和修改PHCollectionList对象。
1 Adding New Collection Lists
[code]/// 创建PHCollectionList /// /// - parameter title : PHCollectionList名 /// /// - returns: PHCollectionListChangeRequest public class func creationRequestForAssetCollectionWithTitle(title: String) -> Self /// 新创建的PHCollectionList public var placeholderForCreatedAssetCollection: PHObjectPlaceholder { get }
2 Deleting Collection Lists
[code]/// 删除PHCollectionList /// /// - parameter collectionLists : [PHCollectionList] /// /// - returns: void public class func deleteCollectionLists(collectionLists: NSFastEnumeration)
3 Modifying Collection Lists
[code]/// 通过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 ReferencePHAssetCreationRequest Class Reference
文档修改记录
时间 | 描述 |
---|---|
2016-01-07 | 博文完成 |
版权所有
CSDN:http://blog.csdn.net/y550918116jGitHub:https://github.com/937447974/Blog
相关文章推荐
- IEnumerable和IQueryable的区别
- 用Zoho Recruit轻松发面试反馈
- Qt 5入门指南之Qt Quick编程示例
- UIPickerView选择器的使用方法
- easyui汉化啊!
- Retrofit之Query注解
- Retrofit之Query注解
- iOS开发之UIKit类继承图
- Fuel部署OpenStack架构分析
- Ubuntu AC701 Build-in Self-test
- iOS uitableview自定义相册(实现拍照并保存在指定目录以相册的形式展示图片)
- 自定义UI(由上而下版)
- miniUI 之 myAPI
- 自定义UI(由下而上版)之第三阶段
- 【leetcode】:Range Sum Query - Immutable
- 自定义UI(由下而上版)之第二阶段
- 使用Android Studio调试UiAutomator过程中遇到的问题
- Photos(PHAssetCreationRequest)
- 如何控制UITextField的拷贝、剪切面板
- Photos(PHAssetChangeRequest)