Raise deployment target to iOS 9 (#743)

https://github.com/TextureGroup/Texture/pull/743

Manually merged since I forgot to retarget that diff onto master before merge
This commit is contained in:
Adlai Holler
2018-01-15 15:13:05 -08:00
parent 1d105c2056
commit 61dade6bda
98 changed files with 361 additions and 415 deletions

View File

@@ -64,7 +64,7 @@
tuningParameters.leadingBufferScreenfuls = 0.5;
tuningParameters.trailingBufferScreenfuls = 1.0;
[_tableView setTuningParameters:tuningParameters forRangeType:ASLayoutRangeTypePreload];
[_tableView setTuningParameters:tuningParameters forRangeType:ASLayoutRangeTypeRender];
[_tableView setTuningParameters:tuningParameters forRangeType:ASLayoutRangeTypeDisplay];
[self.view addSubview:_tableView];
}
@@ -75,7 +75,7 @@
{
return ^{
RandomCoreGraphicsNode *elementNode = [[RandomCoreGraphicsNode alloc] init];
elementNode.size = ASRelativeSizeRangeMakeWithExactCGSize(CGSizeMake(320, 100));
elementNode.style.preferredSize = CGSizeMake(320, 100);
return elementNode;
};
}

View File

@@ -17,7 +17,7 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#import "ASViewController.h"
#import <AsyncDisplayKit/ASViewController.h>
@interface AsyncViewController : ASViewController <UITabBarControllerDelegate>

View File

@@ -86,7 +86,7 @@
- (CGSize)calculateSizeThatFits:(CGSize)constrainedSize
{
[_textNode measure:constrainedSize];
[_textNode layoutThatFits:ASSizeRangeMake(CGSizeZero, constrainedSize)];
return CGSizeMake(constrainedSize.width, 100);
}