¡@

Home 

2014/10/15 ¤U¤È 10:11:20

iphone Programming Glossary: maxyloc

Problem dealloc'ing memory used by UIImageViews with fairly large image in an UIScrollView

http://stackoverflow.com/questions/289360/problem-deallocing-memory-used-by-uiimageviews-with-fairly-large-image-in-an-ui

is causing problems. CGFloat findHeight UIImageView imageView nil NSArray subviews self.scrollView subviews CGFloat maxYLoc 0 for imageView in subviews if imageView isKindOfClass UIImageView class CGRect frame imageView.frame if frame.origin.y.. if imageView isKindOfClass UIImageView class CGRect frame imageView.frame if frame.origin.y frame.size.height maxYLoc maxYLoc frame.origin.y maxYLoc frame.size.height return maxYLoc void viewDidLoad super viewDidLoad self.scrollView.. isKindOfClass UIImageView class CGRect frame imageView.frame if frame.origin.y frame.size.height maxYLoc maxYLoc frame.origin.y maxYLoc frame.size.height return maxYLoc void viewDidLoad super viewDidLoad self.scrollView setContentSize..