2015-08-26 14 views
14

के बीच फ़ाइल पथ/फ़ाइल साझा करने के लिए कोड मैंने अपने ऐप के लिए एक शेयर एक्सटेंशन जोड़ा है (सैपले पर पहले से मौजूद है), जिसे सैंपलशेयर कहते हैं। जब भी कोई उपयोगकर्ता कहता है, वह एक तस्वीर लेता है और इसे साझा करने का प्रयास करता है, तो मैं चाहता हूं कि वे एक ओपन इन कार्यक्षमता के दृश्य नियंत्रक के माध्यम से जाएं, और मूल रूप से इसे छोड़कर ऐप्पल से पोस्ट संवाद प्राप्त न करें। तो मैं ऐप और प्लगइन के बीच साझा किया गया ऐप समूह बनाकर और फिर मेरे ऐप के एप्लिकेशन प्रतिनिधि के ओपनURL में फ़ाइल पथ पास करके, शेयर एक्सटेंशन और मेरे ऐप के बीच तस्वीर साझा करने का प्रयास कर रहा हूं।शेयर एक्सटेंशन और आईओएस ऐप

तो मेरा मुख्य आवेदन प्रतिनिधि में मैं

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation 
{ 

    return [[SAMPLEExternalFileHandler shared] handleExternalFileURL:url]; 
} 

जो मूल रूप से मैं हर जाँच अगर मैं एक यूआरएल फ़ाइल पथ एक अलग प्रवाह को खोलने के लिए की जरूरत है कि है के लिए उपयोग किया है।

मेरी SHAREEXTENSION में मैं

#import "ShareViewController.h" 
#import <MobileCoreServices/UTCoreTypes.h> 
//Macro to hide post dialog or not, if defined, will be hidden, comment during debugging 
#define HIDE_POST_DIALOG 

@interface ShareViewController() 

@end 

@implementation ShareViewController 

NSUInteger m_inputItemCount = 0; // Keeps track of the number of attachments we have opened asynchronously. 
NSString * m_invokeArgs = NULL; // A string to be passed to your AIR app with information about the attachments. 
NSString * APP_SHARE_GROUP = @"group.com.SAMPLE.SAMPLESHAREPLUGIN"; 
const NSString * APP_SHARE_URL_SCHEME = @"SAMPLE"; 
CGFloat m_oldAlpha = 1.0; // Keeps the original transparency of the Post dialog for when we want to hide it. 

- (BOOL)isContentValid { 
    // Do validation of contentText and/or NSExtensionContext attachments here 
    return YES; 
} 

- (void) didSelectPost 
{ 
#ifdef HIDE_POST_DIALOG 
    return; 
#endif 
    [ self passSelectedItemsToApp ]; 
    // Note: This call is expected to be made here. Ignore it. We'll tell the host we are done after we've invoked the app. 
    // [ self.extensionContext completeRequestReturningItems: @[] completionHandler: nil ]; 
} 
- (void) addImagePathToArgumentList: (NSString *) imagePath 
{ 
    assert(NULL != imagePath); 

    // The list of arguments we will pass to the AIR app when we invoke it. 
    // It will be a comma-separated list of file paths: /path/to/image1.jpg,/path/to/image2.jpg 
    if (NULL == m_invokeArgs) 
    { 
     m_invokeArgs = imagePath; 
    } 
    else 
    { 
     m_invokeArgs = [ NSString stringWithFormat: @"%@,%@", m_invokeArgs, imagePath ]; 
    } 
} 

- (NSString *) saveImageToAppGroupFolder: (UIImage *) image 
           imageIndex: (int) imageIndex 
{ 
    assert(NULL != image); 

    NSData * jpegData = UIImageJPEGRepresentation(image, 1.0); 

    NSURL * containerURL = [ [ NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier: APP_SHARE_GROUP ]; 
    NSString * documentsPath = containerURL.path; 

    // Note that we aren't using massively unique names for the files in this example: 
    NSString * fileName = [ NSString stringWithFormat: @"image%d.jpg", imageIndex ]; 

    NSString * filePath = [ documentsPath stringByAppendingPathComponent: fileName ]; 
    [ jpegData writeToFile: filePath atomically: YES ]; 

    return filePath; 
} 

- (void) passSelectedItemsToApp 
{ 
    NSExtensionItem * item = self.extensionContext.inputItems.firstObject; 

    // Reset the counter and the argument list for invoking the app: 
    m_invokeArgs = NULL; 
    m_inputItemCount = item.attachments.count; 

    // Iterate through the attached files 
    for (NSItemProvider * itemProvider in item.attachments) 
    { 
     // Check if we are sharing a JPEG 
     if ([ itemProvider hasItemConformingToTypeIdentifier: (NSString *) kUTTypeImage ]) 
     { 
      // Load it, so we can get the path to it 
      [ itemProvider loadItemForTypeIdentifier: (NSString *) kUTTypeImage 
              options: NULL 
            completionHandler:^(UIImage * image, NSError * error) 
      { 
       static int itemIdx = 0; 

       if (NULL != error) 
       { 
        NSLog(@"There was an error retrieving the attachments: %@", error); 
        return; 
       } 

       // The app won't be able to access the images by path directly in the Camera Roll folder, 
       // so we temporary copy them to a folder which both the extension and the app can access: 
       NSString * filePath = [ self saveImageToAppGroupFolder: image imageIndex: itemIdx ]; 

       // Now add the path to the list of arguments we'll pass to the app: 
       [ self addImagePathToArgumentList: filePath ]; 

       // If we have reached the last attachment, it's time to hand control to the app: 
       if (++itemIdx >= m_inputItemCount) 
       { 
        [ self invokeApp: m_invokeArgs ]; 
       } 
      } ]; 
     } 
    } 
} 
- (void) invokeApp: (NSString *) invokeArgs 
{ 
    // Prepare the URL request 
    // this will use the custom url scheme of your app 
    // and the paths to the photos you want to share: 
    NSString * urlString = [ NSString stringWithFormat: @"%@://%@", APP_SHARE_URL_SCHEME, (NULL == invokeArgs ? @"" : invokeArgs) ]; 
    NSURL * url = [ NSURL URLWithString: urlString ]; 

    NSString *className = @"UIApplication"; 
    if (NSClassFromString(className)) 
    { 
     id object = [ NSClassFromString(className) performSelector: @selector(sharedApplication) ]; 
     [ object performSelector: @selector(openURL:) withObject: url ]; 
    } 

    // Now let the host app know we are done, so that it unblocks its UI: 
    [ super didSelectPost ]; 
} 

#ifdef HIDE_POST_DIALOG 
- (NSArray *) configurationItems 
{ 
    // Comment out this whole function if you want the Post dialog to show. 
    [ self passSelectedItemsToApp ]; 

    // To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here. 
    return @[]; 
} 
#endif 


#ifdef HIDE_POST_DIALOG 
- (void) willMoveToParentViewController: (UIViewController *) parent 
{ 
    // This is called at the point where the Post dialog is about to be shown. 
    // Make it transparent, so we don't see it, but first remember how transparent it was originally: 

    m_oldAlpha = [ self.view alpha ]; 
    [ self.view setAlpha: 0.0 ]; 
} 
#endif 

#ifdef HIDE_POST_DIALOG 
- (void) didMoveToParentViewController: (UIViewController *) parent 
{ 
    // Restore the original transparency: 
    [ self.view setAlpha: m_oldAlpha ]; 
} 
#endif 
#ifdef HIDE_POST_DIALOG 
- (id) init 
{ 
    if (self = [ super init ]) 
    { 
     // Subscribe to the notification which will tell us when the keyboard is about to pop up: 
     [ [ NSNotificationCenter defaultCenter ] addObserver: self selector: @selector(keyboardWillShow:) name: UIKeyboardWillShowNotification object: nil ]; 
    } 

    return self; 
} 
#endif 
#ifdef HIDE_POST_DIALOG 
- (void) keyboardWillShow: (NSNotification *) note 
{ 
    // Dismiss the keyboard before it has had a chance to show up: 
    [ self.view endEditing: true ]; 
} 
#endif 
@end 

है और विस्तार के लिए मेरी Info.plist

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>CFBundleDevelopmentRegion</key> 
    <string>en</string> 
    <key>CFBundleDisplayName</key> 
    <string>SAMPLESHARE</string> 
    <key>CFBundleExecutable</key> 
    <string>$(EXECUTABLE_NAME)</string> 
    <key>CFBundleIdentifier</key> 
    <string>com.org.SAMPLE.$(PRODUCT_NAME:rfc1034identifier)</string> 
    <key>CFBundleInfoDictionaryVersion</key> 
    <string>6.0</string> 
    <key>CFBundleName</key> 
    <string>$(PRODUCT_NAME)</string> 
    <key>CFBundlePackageType</key> 
    <string>XPC!</string> 
    <key>CFBundleShortVersionString</key> 
    <string>1.0</string> 
    <key>CFBundleSignature</key> 
    <string>????</string> 
    <key>CFBundleVersion</key> 
    <string>1</string> 
    <key>NSExtension</key> 
    <dict> 
     <key>NSExtensionAttributes</key> 
     <dict> 
     <key>NSExtensionActivationRule</key> 
     <dict> 
      <key>NSExtensionActivationSupportsImageWithMaxCount</key> 
      <integer>1</integer> 
     </dict> 
    </dict> 
     <key>NSExtensionMainStoryboard</key> 
     <string>MainInterface</string> 
     <key>NSExtensionPointIdentifier</key> 
     <string>com.apple.share-services</string> 
    </dict> 
</dict> 
</plist> 

मैं मूल रूप से इंटरनेट (प्रतिष्ठित साइट) है, जो दावा है बंद कुछ commons लाइसेंस कोड का इस्तेमाल किया है है ऐप स्टोर समीक्षा प्रक्रिया पारित करने के लिए।

कोड में दो वर्कअराउंड हैं, एक शेयर एक्सटेंशन से ओपनURL को कॉल करना है (जो एसओएस से लगता है जैसे एसओएस 8.3 और उससे ऊपर के वर्कअराउंड के बिना सामान्य रूप से संभव नहीं है) और दूसरा पोस्ट छिपाना है जब कोई शेयर पर क्लिक करता है तो संवाद और कीबोर्ड जो सेब डिफ़ॉल्ट रूप से प्रदान करता है। यह काम करता है।

मैं दो प्रश्न

है
1.) Will this be accepted on the app store? -- basically how are apps like facebook/whatsapp doing it and they are being accepted? 
2.) Whenever I run this, it says `NSExtensionActivationRule` if set to `TRUEPREDICATE` will be rejected in review, what should the value be? 

अद्यतन:

तो प्रलेखन के माध्यम से परिशोध मैं प्रश्न 2 के लिए एक ठीक पाया है, और यह बदल दिया है। अब सबकुछ काम करता है, और TRUEPREDICATE नहीं है, क्या इसे स्टोर पर स्वीकार किया जाएगा या ऐसा करने का कोई और तरीका है?

अद्यतन 2:

मैं अब NSUserDefaults का इस्तेमाल किया है, अनुप्रयोग के लिए विस्तार से डेटा पास लगता है कि करने के लिए भी डेटा साझा करने के लिए एक आवश्यकता है।

+0

मैं इसे थोड़ा सा अपडेट कर दूंगा। हां इसे समीक्षा में स्वीकार किया गया – Slartibartfast

+0

इस सहायक पोस्ट के लिए धन्यवाद, मैंने इस विषय पर जानकारी खोजने के लिए कुछ घंटे बिताए –

उत्तर

7

अद्यतन

एप्लिकेशन समीक्षा संदेश तंत्र गुजर के रूप में NSUSERDEFAULTS का उपयोग करने में स्वीकार कर लिया गया। यहां कदम हैं।

1.) शेयर विस्तार:

#import "ShareViewController.h" 
#import <MobileCoreServices/UTCoreTypes.h> 
//Macro to hide post dialog or not, if defined, will be hidden, comment during debugging 
#define HIDE_POST_DIALOG 

@interface ShareViewController() 

@end 

@implementation ShareViewController 

NSUInteger m_inputItemCount = 0; // Keeps track of the number of attachments we have opened asynchronously. 
NSString * m_invokeArgs = NULL; // A string to be passed to your AIR app with information about the attachments. 
NSString * APP_SHARE_GROUP = @"group.com.schemename.nameofyourshareappgroup"; 
const NSString * APP_SHARE_URL_SCHEME = @"schemename"; 
CGFloat m_oldAlpha = 1.0; // Keeps the original transparency of the Post dialog for when we want to hide it. 

- (BOOL)isContentValid { 
    // Do validation of contentText and/or NSExtensionContext attachments here 
    return YES; 
} 

- (void) didSelectPost 
{ 
#ifdef HIDE_POST_DIALOG 
    return; 
#endif 

    [ self passSelectedItemsToApp ]; 
    // Note: This call is expected to be made here. Ignore it. We'll tell the host we are done after we've invoked the app. 
    // [ self.extensionContext completeRequestReturningItems: @[] completionHandler: nil ]; 
} 
- (void) addImagePathToArgumentList: (NSString *) imagePath 
{ 
    assert(NULL != imagePath); 

    // The list of arguments we will pass to the AIR app when we invoke it. 
    // It will be a comma-separated list of file paths: /path/to/image1.jpg,/path/to/image2.jpg 
    if (NULL == m_invokeArgs) 
    { 
     m_invokeArgs = imagePath; 
    } 
    else 
    { 
     m_invokeArgs = [ NSString stringWithFormat: @"%@,%@", m_invokeArgs, imagePath ]; 
    } 
} 

- (NSString *) saveImageToAppGroupFolder: (UIImage *) image 
           imageIndex: (int) imageIndex 
{ 
    assert(NULL != image); 

    NSData * jpegData = UIImageJPEGRepresentation(image, 1.0); 

    NSURL * containerURL = [ [ NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier: APP_SHARE_GROUP ]; 
    NSString * documentsPath = containerURL.path; 

    // Note that we aren't using massively unique names for the files in this example: 
    NSString * fileName = [ NSString stringWithFormat: @"image%d.jpg", imageIndex ]; 

    NSString * filePath = [ documentsPath stringByAppendingPathComponent: fileName ]; 
    [ jpegData writeToFile: filePath atomically: YES ]; 

    //Mahantesh -- Store image url to NSUserDefaults 

    NSUserDefaults *defaults=[[NSUserDefaults alloc] initWithSuiteName:@"group.com.schemename.nameofyourshareappgroup"]; 
    [defaults setObject:filePath forKey:@"url"]; 
    [defaults synchronize]; 

    return filePath; 
} 

- (void) passSelectedItemsToApp 
{ 
    NSExtensionItem * item = self.extensionContext.inputItems.firstObject; 

    // Reset the counter and the argument list for invoking the app: 
    m_invokeArgs = NULL; 
    m_inputItemCount = item.attachments.count; 

    // Iterate through the attached files 
    for (NSItemProvider * itemProvider in item.attachments) 
    { 
     // Check if we are sharing a Image 
     if ([ itemProvider hasItemConformingToTypeIdentifier: (NSString *) kUTTypeImage ]) 
     { 
      // Load it, so we can get the path to it 
      [ itemProvider loadItemForTypeIdentifier: (NSString *) kUTTypeImage 
              options: NULL 
            completionHandler:^(UIImage * image, NSError * error) 
      { 
       static int itemIdx = 0; 

       if (NULL != error) 
       { 
        NSLog(@"There was an error retrieving the attachments: %@", error); 
        return; 
       } 

       // The app won't be able to access the images by path directly in the Camera Roll folder, 
       // so we temporary copy them to a folder which both the extension and the app can access: 
       NSString * filePath = [ self saveImageToAppGroupFolder: image imageIndex: itemIdx ]; 

       // Now add the path to the list of arguments we'll pass to the app: 
       [ self addImagePathToArgumentList: filePath ]; 

       // If we have reached the last attachment, it's time to hand control to the app: 
       if (++itemIdx >= m_inputItemCount) 
       { 
        [ self invokeApp: m_invokeArgs ]; 
       } 
      } ]; 
     } 
    } 
} 
- (void) invokeApp: (NSString *) invokeArgs 
{ 
    // Prepare the URL request 
    // this will use the custom url scheme of your app 
    // and the paths to the photos you want to share: 
    NSString * urlString = [ NSString stringWithFormat: @"%@://%@", APP_SHARE_URL_SCHEME, (NULL == invokeArgs ? @"" : invokeArgs) ]; 
    NSURL * url = [ NSURL URLWithString: urlString ]; 

    NSString *className = @"UIApplication"; 
    if (NSClassFromString(className)) 
    { 
     id object = [ NSClassFromString(className) performSelector: @selector(sharedApplication) ]; 
     [ object performSelector: @selector(openURL:) withObject: url ]; 
    } 

    // Now let the host app know we are done, so that it unblocks its UI: 
    [ super didSelectPost ]; 
} 

#ifdef HIDE_POST_DIALOG 
- (NSArray *) configurationItems 
{ 
    // Comment out this whole function if you want the Post dialog to show. 
    [ self passSelectedItemsToApp ]; 

    // To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here. 
    return @[]; 
} 
#endif 


#ifdef HIDE_POST_DIALOG 
- (void) willMoveToParentViewController: (UIViewController *) parent 
{ 
    // This is called at the point where the Post dialog is about to be shown. 
    // Make it transparent, so we don't see it, but first remember how transparent it was originally: 

    m_oldAlpha = [ self.view alpha ]; 
    [ self.view setAlpha: 0.0 ]; 
} 
#endif 

#ifdef HIDE_POST_DIALOG 
- (void) didMoveToParentViewController: (UIViewController *) parent 
{ 
    // Restore the original transparency: 
    [ self.view setAlpha: m_oldAlpha ]; 
} 
#endif 
#ifdef HIDE_POST_DIALOG 
- (id) init 
{ 
    if (self = [ super init ]) 
    { 
     // Subscribe to the notification which will tell us when the keyboard is about to pop up: 
     [ [ NSNotificationCenter defaultCenter ] addObserver: self selector: @selector(keyboardWillShow:) name: UIKeyboardWillShowNotification object: nil ]; 
    } 

    return self; 
} 
#endif 
#ifdef HIDE_POST_DIALOG 
- (void) keyboardWillShow: (NSNotification *) note 
{ 
    // Dismiss the keyboard before it has had a chance to show up: 
    [ self.view endEditing: true ]; 
} 
#endif 
@end 
  1. आपके आवेदन प्रतिनिधि के openURL विधि में संकेत के लिए EasyNativeExtensions को

     //Slartibartfast -- For the case where we are opening app from an extension 
         NSString *STATIC_FILE_HANDLE = @"file://"; 
         //If app is opened from share extension, do the following 
         /* 
         1.) Get path of shared file from NSUserDefaults 
         2.) Get data from file and store in some variable 
         3.) Create a new accesible unique file path 
         4.) Dump data created into this file. 
         */ 
    
         NSUserDefaults *defaults=[[NSUserDefaults alloc] initWithSuiteName:YOURAPP_STATIC_APP_GROUP_NAME]; 
         NSString *path=nil; 
         if(defaults) 
         { 
          [defaults synchronize]; 
          path = [defaults stringForKey:@"url"]; 
         } 
    
         if(path.length != 0) 
         { 
          NSData *data; 
          //Get file path from url shared 
          NSString * newFilePathConverted = [STATIC_FILE_HANDLE stringByAppendingString:path]; 
          url = [ NSURL URLWithString: newFilePathConverted ]; 
          data = [NSData dataWithContentsOfURL:url]; 
          //Create a regular access path because this app cant preview a shared app group path 
          NSString *regularAccessPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; 
          NSString *uuid = [[NSUUID UUID] UUIDString]; 
          //Copy file to a jpg image(ignore extension, will convert from png) 
          NSString *uniqueFilePath= [ NSString stringWithFormat: @"/image%@.jpg", uuid]; 
          regularAccessPath = [regularAccessPath stringByAppendingString:uniqueFilePath]; 
          NSString * newFilePathConverted1 = [STATIC_FILE_HANDLE stringByAppendingString:regularAccessPath]; 
          url = [ NSURL URLWithString: newFilePathConverted1 ]; 
          //Dump existing shared file path data into newly created file. 
          [data writeToURL:url atomically:YES]; 
          //Reset NSUserDefaults to Nil once file is copied. 
          [defaults setObject:nil forKey:@"url"]; 
    
         } 
        //Do what you want 
        } 
    

धन्यवाद

+0

बहुत बहुत धन्यवाद। यह वास्तव में मेरी मदद करता है। –

0

आपका प्रश्न थोड़ा गड़बड़ है लेकिन अगर यह किसी अन्य ऐप्लिकेशन में एक ऐप्लिकेशन से डेटा गुजर के बारे में है आपको लगता है कि जो UIPasteboard

है आप एप्लिकेशन के बीच कूद के लिए किसी भी समस्या नहीं है, तो के लिए एक महान समाधान है कस्टम यूआरएल हैंडलर का उपयोग करके आपके पास 2 और कदम शेष हैं।

चरण 1
अपने पहले आवेदन जो डेटा इन तरीकों को लागू करने के लिए और फिर फोन कस्टम URL को पारित करने के लिए जिम्मेदार है में।

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; 
[[UIPasteboard generalPasteboard] setImage:passImage]; 


चरण 2
अपने लक्ष्य दृश्य नियंत्रक में सरल कॉल UIPasteboard फिर से और इसे से डेटा मिलता है।

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; 
    UIImage *getImage = pasteboard.image; 


कृपया ध्यान दें, कि आप एक UIImage गुजरती हैं और आप एक ही प्रकार

+0

मुझे नहीं लगता कि आप इस सवाल के इरादे को समझते हैं। ओपी द्वारा लिखे गए एक अलग ऐप न केवल ओपी के ऐप के साथ डेटा साझा करने में सक्षम होने के लिए यूआईएक्टिविटी व्यू कंट्रोलर का उपयोग करने वाले किसी एप को सक्षम करने की इच्छा है। –

+0

@ रॉकेट गार्डन आप ऐसा नहीं कर सकते हैं। सभी ऐप्स शेयर स्वीकार नहीं करते हैं, और उनमें से कुछ स्वीकार करते हैं कि उनमें से कुछ लिंक छवियों को स्वीकार करते हैं। यह गड़बड़ है। आपका एकमात्र विकल्प http://stackoverflow.com/questions/13498459/how-to-display-the-default-ios-6-share-action-sheet-with-available-share-options –

+0

का उपयोग करना है, लेकिन ओपी चाहता था शेयर को स्वीकार करने के लिए उसका आवेदन, दूसरे तरीके से नहीं। वह उस डेटा को निर्धारित करने वाले नियमों को परिभाषित करेगा जो वह स्वीकार करेंगे और फिर कोई भी ऐप जो UIActivityViewController प्रस्तुत करता है, सही डेटा प्रकार का चयन होने पर शेयर के लिए लक्ष्य के रूप में अपना ऐप प्रस्तुत करने में सक्षम होगा। –

0
  1. में इसे पाने के आप सेब से शो संवाद डिफ़ॉल्ट नहीं करना चाहते हैं। UIViewController से @interface ShareViewController: SLComposeServiceViewController
  2. ऐप्पल डेवलपर दस्तावेज़ में, एक्सटेंशन ऐप को सीधे खोलने की अनुमति न दें आज एक्सटेंशन ऐप को छोड़कर ऐप को शामिल करें।
+0

के बारे में आप जो बात कर रहे हैं उससे अलग अवधारणा है अब ऐसे उदाहरण हैं जहां अन्य ऐप्स इस तरह से शेयर एक्सटेंशन का उपयोग कर रहे हैं। उदाहरण के लिए पिक्सेलमेटर स्नैपड के साथ एक छवि साझा करने के लिए शेयर एक्शन का उपयोग करता है, शेयर एक्शन में यूआई नहीं था और ओपनURL को एक्सटेंशन कॉन्टैक्ट पर कॉल किया जाता है ताकि शेयर एक्सटेंशन को आज के एक्सटेंशन के लिए दिखाया जा सके।एक और उदाहरण, फ़ोटो से आप कई छवियों को एक पीडीएफ के रूप में iBooks में साझा कर सकते हैं। यदि आप कुछ छवियों का चयन करते हैं, तो कोई यूआई प्रस्तुत नहीं किया जाता है, यदि बहुत से छोटे UIViewcontrollर्व को प्रगति पट्टी दिखाते हैं, तो लाइब्रेरी में प्रदर्शित पीडीएफ के साथ iBooks खोला जाता है। –

संबंधित मुद्दे