ios右上角按钮自定义边距

UIBarButtonItem *buttonItemShare = [[UIBarButtonItem alloc] initWithCustomView:self.shareRightButton];

UIBarButtonItem *fixabelItem0 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nilaction:nil];

fixabelItem0.width = –10;

self.navigationItem.rightBarButtonItems = @[fixabelItem0,buttonItemShare];


发表评论

电子邮件地址不会被公开。 必填项已用*标注