Aspect fit or center background image?
This becomes stretchy on iPhone X , any way to change the Aspect fit or center background image?
Hi @hjgabrielsen Thanks for your comment, I'll take a look at this. and then will let you know the right way if I can find.
any news?
Hi, hjgabrielsen.
Unfortunately, no good news now. I tried that a little bit before. seems like a lot of things to do. do you have any idea?
btw, I will also tackle this issue by any chance.
Im trying this in ZWIntroductionView.m
Line 180
- (void)addBackgroundViews { CGRect frame = self.bounds; NSMutableArray *tmpArray = [NSMutableArray new]; [[[[self backgroundImageNames] reverseObjectEnumerator] allObjects] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:obj]]; imageView.frame = frame; imageView.contentMode = UIViewContentModeScaleAspectFit; imageView.tag = idx + 1; [tmpArray addObject:imageView]; [self addSubview:imageView]; }];
Did you try that already? Is it what you need?
This doesnt work..
yes, that's why I said is not easy to adjust the best solution.