0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

NavigationBarのrightBarButtonItemの囲いを表示したくない

Last updated at Posted at 2026-01-01

ios26からLiquid Glassデザインになって、そのせいなのかNavigationBarにボタンを表示すると図の「情報」ボタンのように丸で囲われてしまう。

objective-c
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
                                               initWithTitle:@"情報"
                                               style:UIBarButtonItemStylePlain
                                               target:self
                                               action:@selector(showVersion)];

image.png

この囲いを外すにはとりあえず下記のようにすれば表示されなくなった。

objective-c
[self.navigationItem.rightBarButtonItem setHidesSharedBackground:true];
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?