BaTabBarController cocoapod控制器问题(objective-c)

时间:2018-03-13 09:39:48

标签: ios objective-c cocoa

我需要隐藏预览图片,我该如何解决?

https://i.stack.imgur.com/sjlvD.gif

//create inner tab bar item
self.innerTabBarItem = [[UIButton alloc] init];
[self addSubview:self.innerTabBarItem];
self.innerTabBarItem.userInteractionEnabled = NO;//allows for clicks to pass through to the button below
self.innerTabBarItem.translatesAutoresizingMaskIntoConstraints = NO;

//create selected icon
self.selectedImageView = [[UIImageView alloc] initWithImage:selectedImage];
self.selectedImageView.contentMode = UIViewContentModeScaleAspectFit;
[self.innerTabBarItem addSubview:self.selectedImageView];

//create unselected icon
self.unselectedImageView = [[UIImageView alloc] initWithImage:unselectedImage];
self.unselectedImageView.contentMode = UIViewContentModeScaleAspectFit;
[self.innerTabBarItem addSubview:self.unselectedImageView];

0 个答案:

没有答案