i've found code on ray wenderlich
uiscrollview *scrollview;
code:
cgrect scrollviewframe = self.scrollview.frame; cgfloat scalewidth = scrollviewframe.size.width / self.scrollview.contentsize.width; cgfloat scaleheight = scrollviewframe.size.height / self.scrollview.contentsize.height;
why isn't scrollviewframe.size.width written self.scrollview.scrollviewframe.size.width?
source: code:
http://www.raywenderlich.com/10518/how-to-use-uiscrollview-to-scroll-and-zoom-content
not looking @ site, know ray wenderlich, think self.
when self. used? property? or ivar?
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment