开发者

How to set UISegmentedControl w/o calling method

开发者 https://www.devze.com 2023-02-07 15:32 出处:网络
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

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

精彩评论

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