Or you could simply do
CGRect visibleRect = [scrollView convertRect:scrollView.bounds toView:zoomedSubview];
Swift
let visibleRect = scrollView.convert(scrollView.bounds, to: zoomedSubview)
More Related Contents:
- how to remove subviews from scrollview?
- What’s the best way to communicate between view controllers?
- Delete a particular local notification
- Play music in the background using AVAudioplayer
- Scrolling a UITableView inside a UIScrollView
- Is it possible to change a UIButtons background color?
- UILabel updating stops during scrolling UIScrollView
- Check if a UIScrollView reached the top or bottom
- UITextView inside UIScrollView with AutoLayout
- UIScrollview getting touch events
- Convert Seconds Integer To HH:MM, iPhone
- View frame changes between viewWillAppear: and viewDidAppear:
- Is it possible to show an Image in UIAlertView?
- How to Base64 encoding on the iPhone
- Xcode/LLDB: How to get information about an exception that was just thrown?
- Stop UIWebView from “bouncing” vertically?
- How do I auto size a UIScrollView to fit its content
- Can I disable UIPickerView scroll sound?
- Scrolling with two fingers with a UIScrollView
- NSDateFormatter with 24 hour times
- How to create a UIScrollView Programmatically?
- How to set content size of UIScrollView dynamically
- How to Implement iOS8 Interactive Notification
- Reading samples via AVAssetReader
- insertNewObjectForEntityForName:
- How to use UITableView inside UIScrollView and receive a cell click?
- Core Data unique attributes
- Learning the basics of UIScrollView
- how to run my application in background in iphone?
- How to automatically size UIScrollView to fit the content