次のテストがありますが、失敗しました
NSString * expectedValue = @"achilles";
UIPasteboard *pasteboard = [UIPasteboard pasteboardWithName:@"pb1" create:YES];
pasteboard.persistent = YES;
pasteboard.string = expectedValue;
STAssertEqualObjects(expectedValue, [pasteboard string], @"get written value from pasteboard");
[pasteboard setString:expectedValue];
STAssertEqualObjects(expectedValue, [pasteboard string], @"get written value from pasteboard");
どちらのアサートも失敗し、
'achilles' should be equal to '(null)'
ペーストボードへの書き込み、ペーストボードからの読み取り、またはその両方が間違っていますか?