mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-17 00:06:44 +08:00
47 lines
962 B
Objective-C
47 lines
962 B
Objective-C
//
|
|
// ViewController.m
|
|
// ASLayoutSpecPlayground
|
|
//
|
|
// Created by Hannah Troisi on 3/11/16.
|
|
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
|
//
|
|
|
|
#import "ViewController.h"
|
|
#import "PlaygroundContainerNode.h"
|
|
#import "ASDisplayNode+Beta.h" // FIXME?
|
|
|
|
@interface ViewController ()
|
|
|
|
@end
|
|
|
|
// Need ASPagerNode, ASCollectionView, ASViewController or ASTableView to implement (calls measure: for you)
|
|
|
|
@implementation ViewController
|
|
|
|
#pragma mark - Lifecycle
|
|
|
|
- (instancetype)init
|
|
{
|
|
self = [super initWithNode:[[PlaygroundContainerNode alloc] init]];
|
|
if (self) {
|
|
self.navigationItem.title = @"ASLayoutSpec Playground";
|
|
[ASLayoutableInspectorNode sharedInstance].delegate = self;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
}
|
|
|
|
|
|
#pragma mark - UISplitViewControllerDelegate
|
|
|
|
- (void)shouldShowMasterSplitViewController
|
|
{
|
|
self.splitViewController.preferredDisplayMode = UISplitViewControllerDisplayModeAllVisible;
|
|
}
|
|
|
|
@end
|