{"id":1207,"date":"2021-04-08T13:53:25","date_gmt":"2021-04-08T05:53:25","guid":{"rendered":"https:\/\/badgameshow.com\/steven\/?p=1207"},"modified":"2022-08-01T12:11:35","modified_gmt":"2022-08-01T04:11:35","slug":"1207","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/steven\/xcode\/1207\/","title":{"rendered":"UIAlertController actionSheet Exception \u932f\u8aa4\u89e3\u6cd5"},"content":{"rendered":"<h2>\u932f\u8aa4<\/h2>\n<p><code>Fatal Exception: NSGenericException<br \/>\nYour application has presented a UIAlertController (&lt;UIAlertController: 0x101833000&gt;) of style UIAlertControllerStyleActionSheet from MoonBlock.DPTabBarController (&lt;MoonBlock.DPTabBarController: 0x101818200&gt;). The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.<\/code><\/p>\n<h2>\u89e3\u6cd5<\/h2>\n<p>\u9ebb\u7169\u628atitle\u8ddfmessage\u8acb\u52ff\u7559\u7a7a\u767d<\/p>\n<pre><code class=\"line-numbers\">let alert = UIAlertController(title: \"\", message: \"\", preferredStyle: .actionSheet)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u932f\u8aa4 Fatal Exception: NSGen&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[108,5],"tags":[],"class_list":["post-1207","post","type-post","status-publish","format-aside","hentry","category-xcode","category-swift","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/scFK27-1207","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/1207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/comments?post=1207"}],"version-history":[{"count":1,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/1207\/revisions"}],"predecessor-version":[{"id":1208,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/1207\/revisions\/1208"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/media?parent=1207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/categories?post=1207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/tags?post=1207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}