minor change
This commit is contained in:
1 parent
1737eae39b
commit
dfde770274
2 files changed
-7
No files matched your search
@@ -259,7 +259,6 @@
|
|||||||
|
|
||||||
- (void)addToParentStack:(UIStackView *)parentStack {
|
- (void)addToParentStack:(UIStackView *)parentStack {
|
||||||
[parentStack insertArrangedSubview:self atIndex:parentStack.arrangedSubviews.count];
|
[parentStack insertArrangedSubview:self atIndex:parentStack.arrangedSubviews.count];
|
||||||
NSLog(@"title: %@, count: %ld", self.sectionTitle, parentStack.arrangedSubviews.count);
|
|
||||||
self.translatesAutoresizingMaskIntoConstraints = NO;
|
self.translatesAutoresizingMaskIntoConstraints = NO;
|
||||||
[NSLayoutConstraint activateConstraints:@[
|
[NSLayoutConstraint activateConstraints:@[
|
||||||
[self.leadingAnchor constraintEqualToAnchor:parentStack.leadingAnchor constant:0],
|
[self.leadingAnchor constraintEqualToAnchor:parentStack.leadingAnchor constant:0],
|
||||||
@@ -317,9 +316,6 @@
|
|||||||
|
|
||||||
|
|
||||||
- (void)updateViewForFoldState {
|
- (void)updateViewForFoldState {
|
||||||
if([self getSettingsMenuMode] != AllSettings) return;
|
|
||||||
[self setNeedsLayout];
|
|
||||||
[self layoutIfNeeded];
|
|
||||||
[self setupConstraints];
|
[self setupConstraints];
|
||||||
if (_expanded) {
|
if (_expanded) {
|
||||||
_rootStackView.hidden = NO;
|
_rootStackView.hidden = NO;
|
||||||
|
|||||||
@@ -202,15 +202,12 @@ static const CGFloat cellOffsetY = 20;
|
|||||||
- (CGSize)collectionView:(UICollectionView *)collectionView
|
- (CGSize)collectionView:(UICollectionView *)collectionView
|
||||||
layout:(UICollectionViewLayout *)collectionViewLayout
|
layout:(UICollectionViewLayout *)collectionViewLayout
|
||||||
sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
|
sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||||
NSLog(@"return cellsize: %f, %f", self.cellSize.width, self.cellSize.height);
|
|
||||||
return self.cellSize;
|
return self.cellSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (CGFloat)collectionView:(UICollectionView *)collectionView
|
- (CGFloat)collectionView:(UICollectionView *)collectionView
|
||||||
layout:(UICollectionViewLayout *)collectionViewLayout
|
layout:(UICollectionViewLayout *)collectionViewLayout
|
||||||
minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
|
minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
|
||||||
NSLog(@"return iterIterm: %f", self.interItemMinimumSpacing);
|
|
||||||
|
|
||||||
return self.interItemMinimumSpacing;
|
return self.interItemMinimumSpacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user