iphone 下载 解析文件名的方法 The following line does the job if url is a NSString:
NSString *filename = [[url path] lastPathComponent];