Position and size your scroll view with constraints external to the scroll view.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
Position and size your scroll view with constraints external to the scroll view-that is, thetranslatesAutoresizingMaskIntoConstraints property is set to NO.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
Create a plain UIView content view for your scroll view that will be the size that you want your content to have.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
You don't have to set the content size of the scroll view.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
This would give you a scroll view that resized as the view controller's view resized (such as on device rotation), and the image view would be a scrolling subview.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
To make this work with auto layout, the meaning of the top, left, bottom, and right edges within a scroll view now mean the edges of its content view.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
Use constraints to lay out the subviews within the scroll view, being sure that the constraints tie to all four edges of the scroll view and do not rely on the scroll view to get their size.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
Note that you can make a subview of the scroll view appear to float (not scroll) over the other scrolling content by creating constraints between the view and a view outside the scroll view's subtree, such as the scroll view's superview.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
Alternatively, you can create a view subtree to go in the scroll view, set up your constraints, and call the systemLayoutSizeFittingSize:method (with the UILayoutFittingCompressedSize option) to find the size you want to use for your content view and the contentSizeproperty of the scroll view.
ENGADGET: Apple seeds iOS 6 beta 4 to developers: here's the changelog
The netbook's large 11.6-inch high-definition LED-backlit widescreen (16:9 ratio) display is large enough to easily view multiple windows and reduces the need to scroll to view Internet sites, providing a better end user experience.
ENGADGET: Acer's Aspire One D250, 751h now on sale in North America
Scroll around the view from the window of a highrise in Istanbul, or Beirut, or Chicago, and highlighted chunks of the scenery pop out into some sharply-drawn mini-docs.
Pinch to go to film strip view and then you can scroll much faster.
FORBES: Google Expected to Deliver A Tablet At Developer Fest (Live Blog)
Click here to view the 2012 rankings and here to view a detailed interactive map that allows viewers to scroll over states to see how well they did in specific categories.
Scroll your eyes to the right, and Sorrento and the airbrushed profile of Capri roll into view.
FORBES: Naples: The Hotel Terrace with the Best View of Vesuvius
Problem is, if you want to see the whole tweet, you have to scroll to it, push the scroll wheel (we love Peek's wheel, we really do), and then choose "view Tweet" from the menu.
应用推荐