{"id":12588,"date":"2015-10-19T23:00:13","date_gmt":"2015-10-20T03:00:13","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12588"},"modified":"2015-10-19T23:00:55","modified_gmt":"2015-10-20T03:00:55","slug":"adding-save-pdf-to-ibooks","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/10\/19\/adding-save-pdf-to-ibooks\/","title":{"rendered":"Adding \u201cSave PDF to iBooks\u201d Support"},"content":{"rendered":"<p><a href=\"https:\/\/davidgelphman.wordpress.com\/2015\/10\/19\/adding-save-pdf-to-ibooks-support-to-your-application\/\">David Gelphman<\/a>:<\/p>\r\n<blockquote cite=\"https:\/\/davidgelphman.wordpress.com\/2015\/10\/19\/adding-save-pdf-to-ibooks-support-to-your-application\/\"><p>The only substantive change needed to make the sample app use the share sheet is to take out the use of the <code>UIPrintInteractionController<\/code> from the sample and replaced it with the use of a <code>UIActivityViewController<\/code>. This controller takes an array of \u201cActivity Items\u201d as part of its initialization. When the controller is presented it determines what activities (or actions) can be taken on those activity items and allows the user to choose from those actions.<\/p><p>[\u2026]<\/p><p>If you\u2019ve already got printing working in your app, now\u2019s the time to update to using the Share Sheet method instead of the older method. Without a lot of extra work on your part, users get a great new option to save your application\u2019s content in a print ready format. And if you\u2019ve not added printing to your application to date, the \u201cSave PDF to iBooks\u201d feature provides yet another reason to do so.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>David Gelphman: The only substantive change needed to make the sample app use the share sheet is to take out the use of the UIPrintInteractionController from the sample and replaced it with the use of a UIActivityViewController. This controller takes an array of \u201cActivity Items\u201d as part of its initialization. When the controller is presented [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,31,1137,54,345,695,71],"class_list":["post-12588","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-ios","tag-ios-9","tag-objective-c","tag-pdf","tag-printing","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=12588"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12588\/revisions"}],"predecessor-version":[{"id":12590,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12588\/revisions\/12590"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}