1.UIBarButtonItem 自定义问题
描述:当UIBarButtonItem的customView为UIImageView时,imageView多次setImage后,图片回被拉伸
解决方法:
TWView *rightView = [[TWView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
[rightView addSubview:imageView];
UIBarButtonItem *leftItem = [[UIBarButtonItem alloc] initWithCustomView:rightView];
2.关于UIBarButtonItem的间距
ios11中已经留了默认间距
以上问题是在Xcode9.0Run后发现的兼容问题