How to open preferences/settings with iOS 5.1?

前端 未结 4 1536
日久生厌
日久生厌 2020-11-27 15:32

Looks like iOS 5.1 has broken the standard URL encoding for navigating a user to a Preference.

For example:

[[UIApplication sharedApplication] openUR         


        
4条回答
  •  孤独总比滥情好
    2020-11-27 15:46

    you can do this.

    TWTweetComposeViewController *ctrl = [[TWTweetComposeViewController alloc] init];
                        if ([ctrl respondsToSelector:@selector(alertView:clickedButtonAtIndex:)]) {
                            // Manually invoke the alert view button handler
                            [(id )ctrl alertView:nil
                                                 clickedButtonAtIndex:0];
                        }
    

提交回复
热议问题