Commit f73bc1dd authored by 汪洋's avatar 汪洋

删除不必要的代码

parent ea5e0443
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
make.height.offset(1/[UIScreen mainScreen].scale); make.height.offset(1/[UIScreen mainScreen].scale);
}]; }];
_itemView = [[UIView alloc] initWithFrame:CGRectMake(0, [UIApplication sharedApplication].statusBarFrame.size.height, [UIScreen mainScreen].bounds.size.width, 44)]; _itemView = [[UIView alloc] initWithFrame:CGRectMake(0, [UIApplication sharedApplication].statusBarFrame.size.height, [UIScreen mainScreen].bounds.size.width, 44)];
CGFloat titleW = [UIScreen mainScreen].bounds.size.width - 50 - 50; CGFloat titleW = [UIScreen mainScreen].bounds.size.width - 80;
_titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 0, titleW, 44)]; _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(40, 0, titleW, 44)];
_titleLabel.lineBreakMode = NSLineBreakByTruncatingMiddle; _titleLabel.lineBreakMode = NSLineBreakByTruncatingMiddle;
_titleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; _titleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_titleLabel.textAlignment = NSTextAlignmentCenter; _titleLabel.textAlignment = NSTextAlignmentCenter;
...@@ -179,7 +179,6 @@ ...@@ -179,7 +179,6 @@
_rightButton.hidden = NO; _rightButton.hidden = NO;
[_rightButton setImage:nil forState:UIControlStateNormal]; [_rightButton setImage:nil forState:UIControlStateNormal];
[_rightButton setTitle:_rightTitle forState:UIControlStateNormal]; [_rightButton setTitle:_rightTitle forState:UIControlStateNormal];
} }
- (void)setNearRightIcon:(NSString *)nearRightIcon { - (void)setNearRightIcon:(NSString *)nearRightIcon {
...@@ -194,8 +193,6 @@ ...@@ -194,8 +193,6 @@
[_nearRightButton setImage:nil forState:UIControlStateNormal]; [_nearRightButton setImage:nil forState:UIControlStateNormal];
[_nearRightButton setTitle:_nearRightTitle forState:UIControlStateNormal]; [_nearRightButton setTitle:_nearRightTitle forState:UIControlStateNormal];
} }
@end @end
@implementation OCNavigationBar (ViewConstant) @implementation OCNavigationBar (ViewConstant)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment