Deprecate -initWith{View,Layer}Class:.

These have been superseded by -[ASDisplayNode initWithViewBlock:] and
-[ASDisplayNode initWithLayerBlock:], respectively -- the new API allows
for custom initialisers, but does not support asynchronous display.

The old initialisers are still available in ASDisplayNodeInternal.h, for
internal subclasses and daring adventurers.
This commit is contained in:
Nadine Salter
2015-01-24 11:44:47 -08:00
parent 9f38488fd2
commit fab6f623a8
5 changed files with 18 additions and 29 deletions

View File

@@ -48,6 +48,12 @@ static UIImage *bogusImage() {
@end
@interface ASDisplayNode (HackForTests)
- (id)initWithViewClass:(Class)viewClass;
- (id)initWithLayerClass:(Class)layerClass;
@end
@interface _ASDisplayLayerTestLayer : _ASDisplayLayer
{
BOOL _isInCancelAsyncDisplay;