ios - UIPasteboard pasteboardWithName not working in IOS7.1 -


I have to transfer data from one APP to another. When I use paste board for the first time , but the second time I'm getting zero data from the paste board . This problem is only the IOS7.1 device , in all other devices it is a strange thing.

My code is as follows.

  // set data UIIPTboard * pasteboard = [UIPistboard pasteboardwidthname: @ "test"]: yes]; If (item == zero) {NSLog (@ "** set data is zero"); } If (pasteboard) {[pasteboard set it's: [object with nsere array]: items]]; } // Get the data UIPasteboard * Pasteboard = [UIPistboard PasteboardWidthname: @ "Test": No]; NSDictionary * migrateInfo = Zero; If (Pasteboard! = Zero & Pasteboard.itm.ct> 0) {MigrateInfo = [PasteboardEight ObjectItindex: 0]; DEV_LOG (@ "** has pasteboard data"); }   

When I transmit the data the second time, I am getting zero values ​​as the migratory object.

1) After reading the data from the pasteboard data removed from the pasteboard,

"Post-Text "Itemprop =" text ">

I made two changes to my code. Pasteboard data can be removed using the Delete PasteboardWidthName

[UIPTboard removal pestboardwidthname: PASTE_BOARD_NAME];

2) I set the setValue function instead of the SetItems function. (to put objects) such as NSString, NSArray, NSDictionary, NSDate, NSNumber, UIImage, or NSURL objects on the pasteboard, use setValue: forPasteboardType: method.)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -