MMMPreferredSizeChanges
Objective-C
@protocol MMMPreferredSizeChanges <NSObject>
Swift
protocol MMMPreferredSizeChanges : NSObjectProtocol
A view supporting this will be notified when one of the child views indicates potential changes in its contents
that might influence its size via mmm_setPreferredSizeCouldChange
.
This is handy with views that do not fully rely on Auto Layout, like UITableView, where a change in the size of a cell would require it to reload this cell.
The implementation is responsible for coalescing notification and avoiding notification loops.
-
Undocumented
Declaration
Objective-C
- (void)mmm_preferredSizeCouldChangeForSubview:(UIView *)subview;
Swift
func mmm_preferredSizeCouldChange(forSubview subview: UIView)