It looks like self.fullresolutionimages, the array/dictionary, is the nil that is causing the error.
make sure that you allocate that first, self.fullResolutionImages = [UIImage]()
;
Also, I am not 100% sure if doing the index when there are no contents will work, so you may want to append instead, self.fullResolutionImages.append(self.fullResolutionImage)
, or insert this way, self.fullResolutionImages.insert(self.fullResolutionImage, atIndex: 0)
fullResolutionImages = nil,消息正确,不是吗?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.