I am having a weird issue with the UIPasteboard.
I am copying text from Safari, and then in my app looking into UIPasteboard to see if it contains any data using this code:
[[UIPasteboard generalPasteboard] containsPasteboardTypes:[NSArray arrayWithObject:@"public.utf8-plain-text"]]
It’s working fine with the Simulator but not working with the iPad. Is this because of any character set issue?
I was having this issue because of character set but i am not sure it was only with the IOS 5.0 or for all version. But i have solved my problem with a simple solution,
UIPasteboardTypeListString
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPasteboard_Class/Reference.html
I hope this answer can help anyone.