iphone menu spacing
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
_sectionTitle = @"Section";
|
||||
_expanded = YES;
|
||||
_backgroundColor = [UIColor clearColor];
|
||||
_rootStackViewSpacing = 18;
|
||||
_rootStackViewSpacing = [self isIPhone] ? 10 : 16;
|
||||
_subStackViews = [NSMutableArray array];
|
||||
_headerViewHeight = 37;
|
||||
_headerViewVerticalSpacing = 25;
|
||||
@@ -303,6 +303,10 @@
|
||||
|
||||
#pragma mark - Private Methods
|
||||
|
||||
- (BOOL)isIPhone {
|
||||
return [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone;
|
||||
}
|
||||
|
||||
- (void)toggleFold {
|
||||
self.expanded = !self.expanded;
|
||||
[self updateViewForFoldState];
|
||||
|
||||
@@ -1048,7 +1048,7 @@ BOOL isCustomResolution(CGSize res) {
|
||||
currentSettings.settingsMenuMode = [NSNumber numberWithInteger:currentSettingsMenuMode];
|
||||
[dataMan saveData];
|
||||
|
||||
_parentStack.spacing = 15;
|
||||
_parentStack.spacing = [self isIPhone] ? 10 : 15;
|
||||
|
||||
[self loadFavoriteSettingStackIdentifiers];
|
||||
for(NSString* settingIdentifier in _favoriteSettingStackIdentifiers){
|
||||
|
||||
Reference in New Issue
Block a user