¡@

Home 

2014/10/15 ¤U¤È 10:14:59

iphone Programming Glossary: tmpimage

Uiscrollview lazy loading

http://stackoverflow.com/questions/14659650/uiscrollview-lazy-loading

typeof self weakSelf self dispatch_async dispatch_get_global_queue DISPATCH_QUEUE_PRIORITY_BACKGROUND 0 ^ UIImage tmpImage UIImage alloc initWithCGImage asset.defaultRepresentation.fullScreenImage __strong __typeof__ weakSelf strongSelf weakSelf.. ^ __strong __typeof__ weakSelf strongSelf weakSelf if strongSelf.scrollView viewWithTag tagNumber nil UIImageView tmpImageView UIImageView strongSelf.scrollView viewWithTag tagNumber tmpImageView.image tmpImage void loadThumbnailImageByIndex.. viewWithTag tagNumber nil UIImageView tmpImageView UIImageView strongSelf.scrollView viewWithTag tagNumber tmpImageView.image tmpImage void loadThumbnailImageByIndex int index int arrayIndex index int tagNumber index 1 ALAsset asset..

UIImage detecting touch and dragging

http://stackoverflow.com/questions/1991899/uiimage-detecting-touch-and-dragging

follows numImages is set on load to ZERO and is used as a count up for the tag numbers of all images created UIImage tmpImage UIImage imageNamed NSString stringWithFormat @ i.png sender.tag retain UIImageView myImage UIImageView alloc initWithImage.. imageNamed NSString stringWithFormat @ i.png sender.tag retain UIImageView myImage UIImageView alloc initWithImage tmpImage numImages 1 myImage.userInteractionEnabled YES myImage.tag numImages myImage.opaque YES self.view addSubview myImage myImage.. pt.x startLocation.x frame.origin.y pt.y startLocation.y self setFrame frame @end and to call it UIImage tmpImage UIImage imageNamed test.png retain UIImageView imageView UIImageView alloc initWithImage tmpImage CGRect cellRectangle cellRectangle..

UIImageJPEGRepresentation - memory release issue

http://stackoverflow.com/questions/2655769/uiimagejpegrepresentation-memory-release-issue

each time time the loop is executed the memory increase of the size of the original size of my jpg 700Ko despite the tmpImage release . float compressionLevel 1.0f int size 300001 while size 300000 UIImage tmpImage UIImage alloc initWithContentsOfFile.. of my jpg 700Ko despite the tmpImage release . float compressionLevel 1.0f int size 300001 while size 300000 UIImage tmpImage UIImage alloc initWithContentsOfFile self fullDocumentsPathForTheFile @ imageToAnalyse.jpg size UIImageJPEGRepresentation.. alloc initWithContentsOfFile self fullDocumentsPathForTheFile @ imageToAnalyse.jpg size UIImageJPEGRepresentation tmpImage compressionLevel length tmpImage release In the following line the 0.001f decrement is choose just in order test the increase..