NSPopUpButton of type pull Down , when i click on some menu item ,title of popup is not getting changed

自闭症网瘾萝莉.ら 提交于 2019-12-03 16:23:55

From the documentation,

Unlike popup lists, the title of a popup button displaying a pulldown list is not based on the currently selected item and thus remains fixed unless you change using the cell’s setTitle: method.

If you want the selected item to be shown as title, the easiest way is to use a popup instead of pulldown. Or call setTitle: every time you change the selection.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!