I would like to get the text copied to clipboard when application launching.
I can use following text to get the available text from clipboard. But I need to use this value in a different viewcontroller. How can I pass this value to my viewcontroller?
- (void)applicationDidBecomeActive:(UIApplication *)application {
NSLog([UIPasteboard generalPasteboard].string);
}
Declare and implement a method on your VC which you call from the app delegate upon becoming active:
in your app delegate: