06/05/2015

// 1 The Observer Pattern

 

// 2 把照片写入本地 / 删除

 

// 3 lastPathComponent

- 取得一个URL地址中最后一个“/”后面的值

/tmp/scratch.tiff

scratch.tiff

/tmp/scratch

scratch

/tmp/

tmp

scratch///

scratch

/

“/”

 

//  4 下载url图片

[NSData dataWithContentsOfURL:[NSURL URLWithString:url]];  

  •不要使用这个方法 因为他是同步的会阻塞主线程 如果没有相应的话

 

 

posted on 2015-05-06 13:10  puppyb2m  阅读(93)  评论(0编辑  收藏  举报

导航