开发者

Changing in runtime the number of the component of the PickerView with NSUserDefaults

开发者 https://www.devze.com 2023-04-02 11:57 出处:网络
Hello everybody Im a newbie about iPhone programming I created an application with a tab bar.In one view there\'开发者_开发知识库s a picker view in other view I put a slider where I want change the n

Hello everybody Im a newbie about iPhone programming I created an application with a tab bar.In one view there'开发者_开发知识库s a picker view in other view I put a slider where I want change the number of the components of the picker. Even if I use nsuserdefaults and then reloadAllcomponents the number of picker component doesn't change. Can someone help to resolve this issue? How can this two communicate without use setting bundle but only nsuserdefaults? Thanks


You need to [[NSUserDefaults standardUserDefaults] synchronize]; after writing to them in one class and before reading in other class?

0

精彩评论

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