Im Saving to a unique pasteboard here:
UIPasteboard *pasteboard = [UIPasteboard pasteboardWithName:@"myPasteboard" create:YES];
[pasteboard setPersistent:YES];
//save to unique pasteboard
[pasteboard setString: [NSString stringWithFormat:@"%@",self.myTextFieldHere]];
Trying to read it out here:
UIPasteboard *pasteSaved = [UIPasteboard pasteboardWithName:@"myPasteboard"];
_myTextFieldHere.text = [pasteSaved string];
My error is "no class method for selector" for my local variable of pastesaved
What ive tried so far
UIPasteboard *pasteSaved =[[UIPasteboard pasteboardTypes] containsObject:@"myPasteBoard"];
UIPasteboard *pasteSaved = [UIPasteboard pasteboardWithName:@"myPasteboard"];
UIPasteboard *pasteSaved = [UIPasteboard pasteboardWithUniqueName:@"myPasteboard"];
UIPasteboard *pasteSaved = [UIPasteboard: @"myPasteboard"];
UIPasteboard *pasteSaved = [UIPasteboard pasteboardWithUniqueName];