[ASViewController] Allow VC to conform to range updating protocol, log message if impossible to update

This commit is contained in:
Adlai Holler
2016-07-14 10:56:52 -07:00
parent 6c8292470b
commit 3591f7a7c1
2 changed files with 26 additions and 6 deletions

View File

@@ -64,7 +64,12 @@ typedef ASTraitCollection * _Nonnull (^ASDisplayTraitsForTraitWindowSizeBlock)(C
@interface ASViewController (ASRangeControllerUpdateRangeProtocol)
/// Automatically adjust range mode based on view events if the containing node confirms to the ASRangeControllerUpdateRangeProtocol
/**
* Automatically adjust range mode based on view events. If you set this to YES, the view controller or its node
* must conform to the ASRangeControllerUpdateRangeProtocol.
*
* Default value is NO.
*/
@property (nonatomic, assign) BOOL automaticallyAdjustRangeModeBasedOnViewEvents;
@end