¡@

Home 

2014/10/15 ¤U¤È 10:09:03

iphone Programming Glossary: findlargeimage

ALAsset Photo Library Image Performance Improvements When Its Loading Slow

http://stackoverflow.com/questions/13508535/alasset-photo-library-image-performance-improvements-when-its-loading-slow

Hi i've got a problem with display an image on my scrollView. At first i create new UIImageView with asset url void findLargeImage NSNumber arrayIndex ALAssetsLibraryAssetForURLResultBlock resultblock ^ ALAsset myasset ALAssetRepresentation rep if myasset.. scrollView Then in my viewWillAppear i do this void viewWillAppear BOOL animated self.scrollView.delegate self self findLargeImage self.actualPhotoIndex self.view addSubview self.scrollView But image doesnt appear should i refresh self.view after add.. Example CGImageRef iref myasset aspectRatioThumbnail itemToAdd.image UIImage imageWithCGImage iref Example void findLargeImage NSNumber arrayIndex ALAssetsLibraryAssetForURLResultBlock resultblock ^ ALAsset myasset CGImageRef iref myasset aspectRatioThumbnail..

display image from URL retrieved from ALAsset in iPhone

http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone

NSError error which isnt strictly needed but keeps things pretty. and then in your source. void findLargeImage NSString mediaurl self.node valueForKey kVMMediaURL ALAssetsLibraryAssetForURLResultBlock resultblock ^ ALAsset myasset.. bend your head a little but if you think of them as notification selectors or callbacks it kind of helps. Also when findLargeImage returns the resultblock wont have run yet as its a callback. So largeImage wont be valid yet. largeImage needs to be an.. I use this construct to do this when using the method but you may find something more suitable to your use. node.view findLargeImage UIImage thumb node.view.largeImage if thumb blah blah Thats what I learned while trying to get this working anyway. iOS..