博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
图片操作
阅读量:4555 次
发布时间:2019-06-08

本文共 1285 字,大约阅读时间需要 4 分钟。

1 保存部分:

   

addAssetsGroupAlbumWithName:resultBlock:failureBlock:

Adds a new assets group to the library.

- (void)addAssetsGroupAlbumWithName:(  *)
name resultBlock:( )
resultBlock failureBlock:( )
failureBlock
Parameters
name

The name for the new group.

If name conflicts with another assets group with the same name, then the group is not created and resultBlock returns a nil group.

resultBlock

The block invoked after the add operation completes.

For a description of the block, see .

failureBlock

The block to invoke if the add operation fails—for example, if the user denies access to the application.

For a description of the block, see .

Discussion

The name of the new asset group is name, its type is , and the  property is YES.

This method is asynchronous. When the assets group is added, the user may be asked to confirm the application’s access to the data; the method, though, returns immediately. You should perform whatever work you want with the group in resultBlock.

If the user denies access to the application, or if no application is allowed to access the data, or if the data is currently unavailable, the failure block is called.

Availability
  • Available in iOS 5.0 and later.
Declared In
ALAssetsLibrary.h

转载于:https://www.cnblogs.com/xuvw/archive/2012/12/07/2807776.html

你可能感兴趣的文章
python高效读取文件、文件改写
查看>>
gulp
查看>>
pgsql查询优化之模糊查询
查看>>
不变模式
查看>>
matlab去云雾
查看>>
500lines项目简介
查看>>
Asp.net core logging 日志
查看>>
BOM浏览器对象模型
查看>>
Jq 遍历each()方法
查看>>
Android源码分析:Telephony部分–phone进程
查看>>
关于 redis.properties配置文件及rule
查看>>
WebService
查看>>
关于Java中重载的若干问题
查看>>
Java中start和run方法的区别
查看>>
23种设计模式中的命令模式
查看>>
[转载]年薪10w和年薪100w的人,差在哪里?
查看>>
shell 日期参数
查看>>
package的使用
查看>>
括号生成
查看>>
前端--jstree--异步加载数据
查看>>