开发者

How to set UISegmentedControl w/o calling method

I have a UISegmentedController to allow a user to choose which order they want slides in my app to show 开发者_StackOverflowup. Im wondering if anyone knows of a method to set it other than value did change. I have other methods that keep getting triggered in viewDidLoad while its being set to their previously selected index. I don't want the other methods triggered until a user changes it. Any suggestions?

Thanks in advance


The simplest way would be adding boolean to your class, e.g. canTrigger. And you can set it to YES, once user changes.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜