mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-26 20:27:42 +00:00
update the CPScrollView2 manual test to use the new API
This commit is contained in:
@@ -92,9 +92,9 @@
|
||||
*/
|
||||
- (IBAction)changeSystemWideScrollerStyle:(id)aSender
|
||||
{
|
||||
if ([CPScrollView currentDefaultScrollerStyle] == CPScrollerStyleOverlay)
|
||||
[CPScrollView setCurrentDefaultScrollerStyle:CPScrollerStyleLegacy];
|
||||
if ([CPScrollView globalScrollerStyle] == CPScrollerStyleOverlay)
|
||||
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleLegacy];
|
||||
else
|
||||
[CPScrollView setCurrentDefaultScrollerStyle:CPScrollerStyleOverlay];
|
||||
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleOverlay];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user