Exchange data between two iphone applications

I want to exchange text data between two iphone applications . How can I use a wand for this purpose. Can anyone help me with some sample code. Thank you in advance. Suggest me if there are more effective ways to complete my task than cardboard.

+5
source share
2 answers

If you just want to use IPC, make both of your applications recognize any URL scheme. Then call

[[UIApplication sharedApplication] openURL:
  [NSURL URLWithString:@"theOtherApp://dataToShare"]];

to send and use -application:handleOpenURL:to receive.


To share lines using cardboard, use

 UIPasteboard* board = [UIPasteboard generalPasteboard];
 board.string = @"Some string to share";

board.string . - , .


, :

  • AddressBook. .
  • . . 3.x.
  • / . /var/mobile/Library/AddressBook Keyboard Preferences , . SDK.
+7

URL .

, - , - , . .

Update:

@ohhorob , . , , () . . .

0

All Articles