开发者

UIBarButton doesn't restore itself when I set customView to nil

开发者 https://www.devze.com 2023-01-29 11:48 出处:网络
I\'ve got a UIBarButtonItem that refreshes my data, and while the update is in process, I set refreshButton.customView to an instance of UIActivityIndicator, which is displayed fine. However, when dat

I've got a UIBarButtonItem that refreshes my data, and while the update is in process, I set refreshButton.customView to an instance of UIActivityIndicator, which is displayed fine. However, when data has been updated and I call refreshButton.customView = nil, the initial UIBarButton开发者_运维问答Item is not displayed any more (just a blank space). Anyone knows how can I fix this?

0

精彩评论

暂无评论...
验证码 换一张
取 消